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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1670
RA = 16.2146, Dec = -24.2808
tmin = 672192001, tmax = 672451201
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='862260', job_status='RUN', time_executed='2022-04-24 00:15:45.371203', time_epoch_executed='1650784545.37' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862260/ft1_4FGL_J0104.8-2416_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862260/ft1_4FGL_J0104.8-2416_daily_bin1670.fits outfile=/scratch/kocevski/862260/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1670.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=672192001.0 tmax=672451201.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.18
user 3.94
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.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/862260/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.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.47
user 0.28
sys 0.17

Number of photons that the gtmktime cut: 386

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/862260/ltcube_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.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/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits
.....................!
real 13.19
user 12.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/862260/ltcube_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits outfile=/scratch/kocevski/862260/expmap_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.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/862260/ltcube_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits
.....................!
real 154.58
user 149.55
sys 4.70

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

Setting source of interest to:
4FGL J0104.8-2416 @ 16.2146 -24.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits outfile=/scratch/kocevski/862260/cmap_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.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=16.2146 yref=-24.2808 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 3.34
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits outfile=/scratch/kocevski/862260/cmap_HighResolution_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.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=16.2146 yref=-24.2808 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.50
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862260/Model_4FGL_J0104.8-2416_daily_bin1670.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/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits.....................!
real 33.31
user 32.17
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits', '/scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits', expMap='/scratch/kocevski/862260/expmap_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits', expCube='/scratch/kocevski/862260/ltcube_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862260/Model_4FGL_J0104.8-2416_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0104.8-2416'

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.411e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862260/ft1_filtered_4FGL_J0104.8-2416_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/862260/ft2_4FGL_J0104.8-2416_daily_bin1670.fits
Exposure map: /scratch/kocevski/862260/expmap_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits
Exposure cube: /scratch/kocevski/862260/ltcube_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862260/Model_4FGL_J0104.8-2416_daily_bin1670.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) = 4314.01031604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.2975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8946       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3120       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9471       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1712       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4314.009     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2155 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7570        .90712E-02** at limit **
   2  Prefactor     .10000E-03    6.6375        .90712E-02** at limit **
   3  norm          .10000E-03    4.8973        .90712E-02** at limit **
   4  norm          9.2982        8.0730        .32859E-02    .49987E-03
   5  Prefactor     .10000E-03    91.859        .90712E-02** at limit **
   6  norm          .10000E-03    9.9853        .90712E-02** at limit **
   7  norm          .10000E-03    1.5179        .90712E-02** at limit **
   8  Prefactor     2.4547        8.4399        .65171E-02    .57692E-03
   9  Prefactor     8.6035        17.062        .34187E-02    .18060E-02
  10  Prefactor     .41798        3.9747        .40188E-01    .36119E-03
  11  Prefactor     .10001E-03    3.4875        .90712E-02** at limit **
  12  norm          .10000E-03    .83955        .90712E-02** at limit **
  13  norm          2.8944        2.5039        .59712E-02    .64345E-04
  14  Prefactor     14.589        15.910        .26217E-02    .84131E-03
  15  Prefactor     .10001E-03    3.4470        .90712E-02** at limit **
  16  norm          2.3121        1.6570        .67456E-02    .18442E-04
  17  norm          .10000E-03    .60159        .90712E-02** at limit **
  18  norm          1.9473        2.9743        .74361E-02    .43423E-03
  19  Prefactor     .10000E-03    26.859        .90712E-02** at limit **
  20  Normalizat    1.1711        .18862        .35640E-01   -.23924E-04
  21  Prefactor     .70872        .20307        .64127E-01   -.10223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.29817
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.45465
  Prefactor  = 8.60346
  Prefactor  = 0.417979
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 2.89437
  Prefactor  = 14.5894
  Prefactor  = 0.000100012
  norm       = 2.31211
  norm       = 0.0001
  norm       = 1.94727
  Prefactor  = 0.000100001
  Normalizat = 1.17114
  Prefactor  = 0.708715
 **********
 **   18 **HESSE 
 **********

 FCN=   4314.009     FROM HESSE     STATUS=OK           311 CALLS     2466 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7605        .12434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6388        .16528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.9005        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.2982        8.0882        .13144E-03   -1.5098    
   5  Prefactor     .10000E-03    91.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5731        .15800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4547        8.2892        .26069E-03   -1.5395    
   9  Prefactor     8.6035        16.737        .13675E-03   -1.5121    
  10  Prefactor     .41798        8.5841        .24892E-02   -1.5579    
  11  Prefactor     .10001E-03    3.4961        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .84789        .58747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8944        2.4975        .91953E-04   -1.5368    
  14  Prefactor     14.589        15.903        .10487E-03   -1.4944    
  15  Prefactor     .10001E-03    3.5092        .11896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3121        1.6565        .68747E-04   -1.5404    
  17  norm          .10000E-03    .60482        .49730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9473        2.9585        .13406E-03   -1.5429    
  19  Prefactor     .10000E-03    26.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1711        .22038        .19989E-03   -.87499    
  21  Prefactor     .70872        .23629        .28370E-03   -1.0319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63172e-08
Minuit parameter uncertainties:
  1  1.97131e-05
  2  3.15208e-05
  3  1.0849e-05
  4  8.08913
  5  0.000710799
  6  3.07915e-05
  7  1.01785e-05
  8  8.29312
  9  16.7463
  10  3.78857
  11  0.000336578
  12  9.30546e-06
  13  2.49757
  14  15.9081
  15  0.000406777
  16  1.65654
  17  8.15763e-06
  18  2.95871
  19  0.000339935
  20  0.220553
  21  0.236629
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.455e+00  8.293e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.087e-01  2.366e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.171e+00  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862260/likelihoodResults_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.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) = 4312.23452864
delta logL = 1.77425581816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4312.07074828
delta logL = 1.93803617348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19192E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8164       1.0000          .0000       10.000    
     3 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4312.071     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      348 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17956E-02    .23628E-01    .46061E-03** at limit **
   2  Index         8.8583        8.0095        .17747        .28742E-04
   3  Normalizat    1.0665        .57393E-01    .39583E-01   -.75786E-05
   4  Prefactor     .79452        .65426E-01    .43649E-01    .65365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00179555
  Index      = 8.85834
  Normalizat = 1.06648
  Prefactor  = 0.794525
 **********
 **   18 **HESSE 
 **********

 FCN=   4312.071     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      379 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17956E-02    .42469E-01    .18221E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8583        8.9331        .78734E-03    .88146    
   3  Normalizat    1.0665        .21227        .20756E-03   -.90835    
   4  Prefactor     .79452        .23606        .26924E-03   -.99930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03671e-11
Minuit parameter uncertainties:
  1  0.0169715
  2  5.76042
  3  0.21244
  4  0.236361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862260': 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) = 4312.07072542
delta logL = 1.93805904003

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.796e-03  1.697e-02  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  8.858e+00  5.760e+00  0.000e+00  1.000e+01 (-1.000e+00)
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.945e-01  2.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.066e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.22
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 8.86 +/- 5.76
Photon Flux (Free Index): 9.35e-08 +/- 6.53e-08
Energy Flux (Free Index): 1.07e-05 +/- 7.98e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/862260/cmap_HighResolution_672192001_672451201_4FGL_J0104.8-2416_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='1.94e+00', photon_flux2='9.35e-08', job_status='DONE', time_completed='2022-04-24 00:23:03.915544', photon_index_error2='5.76', photon_index2='8.86', ts='0.12', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='7.98e-06', EG='1.17', time_epoch_completed='1650784983.92', return_code='0', job_id='862260', GAL2='0.79', EG2='1.07', return_code2='102', photon_flux_error2='6.53e-08', ts2='4.22', photon_index='2.59' WHERE bin_id='1670' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 00:23:03 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 862164: <4FGL_J0104.8-2416_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1670> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:18 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:11:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:11:09 2022
Terminated at Sun Apr 24 00:21:14 2022
Results reported at Sun Apr 24 00:21:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1670 16.2146 -24.2808 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0104.8-2416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   540.09 sec.
    Max Memory :                                 782 MB
    Average Memory :                             298.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            776 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 862260: <4FGL_J0104.8-2416_daily_bin1670> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1670> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Apr 24 00:08:22 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:11:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:11:39 2022
Terminated at Sun Apr 24 00:23:04 2022
Results reported at Sun Apr 24 00:23:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1670 16.2146 -24.2808 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0104.8-2416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   437.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            882 sec.

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

