/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 24 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 = 7433
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1259
RA = 16.2146, Dec = -24.2808
tmin = 565660801, tmax = 565920001
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='335019', job_status='RUN', time_executed='2021-08-13 11:52:14.981535', time_epoch_executed='1628880734.98' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335019/ft1_4FGL_J0104.8-2416_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335019/ft1_4FGL_J0104.8-2416_daily_bin1259.fits outfile=/scratch/kocevski/335019/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1259.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=565660801.0 tmax=565920001.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 6.17
user 3.29
sys 2.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.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/335019/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1259.fits evtable="EVENTS" outfile="/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.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 3.07
user 0.34
sys 2.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/335019/ltcube_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.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/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits
.....................!
real 15.50
user 12.19
sys 3.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/335019/ltcube_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits outfile=/scratch/kocevski/335019/expmap_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.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/335019/ltcube_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits
.....................!
real 196.34
user 186.76
sys 8.89

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/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits outfile=/scratch/kocevski/335019/cmap_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.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.15
user 0.38
sys 2.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits outfile=/scratch/kocevski/335019/cmap_HighResolution_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.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 3.04
user 0.38
sys 2.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335019/Model_4FGL_J0104.8-2416_daily_bin1259.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/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits.....................!
real 50.09
user 45.21
sys 4.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits', '/scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits', expMap='/scratch/kocevski/335019/expmap_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits', expCube='/scratch/kocevski/335019/ltcube_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335019/Model_4FGL_J0104.8-2416_daily_bin1259.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/335019/ft1_filtered_4FGL_J0104.8-2416_daily_bin1259.fits
Spacecraft file(s): /scratch/kocevski/335019/ft2_4FGL_J0104.8-2416_daily_bin1259.fits
Exposure map: /scratch/kocevski/335019/expmap_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits
Exposure cube: /scratch/kocevski/335019/ltcube_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335019/Model_4FGL_J0104.8-2416_daily_bin1259.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) = 5701.52767279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.881       1.0000         .10000E-03   10000.    
     3 'norm      '    20.783       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10223E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3047       1.0000         .10000E-03   10000.    
     7 'norm      '    .66835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13768E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12675E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8177       1.0000         .10000E-03   10000.    
    13 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8923       1.0000         .10000E-03   10000.    
    16 'norm      '    .60633       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6521       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8593       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .55560       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0594       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5701.472     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     1931 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16758        6.9366       -.18615E-05    .32250E-03
   2  Prefactor     12.849        13.943        .12733E-04    .85567E-05
   3  norm          20.764        11.362       -.87394E-06    .17003E-04
   4  norm          .10000E-03    .96665       -.10716E-08** at limit **
   5  Prefactor     .10000E-03    33.364       -.95674E-05** at limit **
   6  norm          2.3565        7.7245       -.56496E-05   -.31350E-03
   7  norm          .67004        2.0365       -.79698E-06   -.12735E-02
   8  Prefactor     11.102        6.2095       -.17973E-05   -.14454E-04
   9  Prefactor     .10000E-03    5.0560        .19659E-06** at limit **
  10  Prefactor     .10000E-03    2.4275       -.72487E-07** at limit **
  11  Prefactor     .10000E-03    8.8620       -.17944E-05** at limit **
  12  norm          2.8149        1.9729        .13514E-06    .16645E-03
  13  norm          .10000E-03    .70789        .68357E-07** at limit **
  14  Prefactor     7.3576        10.915       -.29400E-05   -.65563E-04
  15  Prefactor     1.9085        3.1521        .34294E-07   -.32575E-03
  16  norm          .60640        .75614       -.91560E-07   -.10007E-02
  17  norm          2.6503        1.9718       -.21896E-07   -.38604E-03
  18  norm          .10000E-03    1.0628       -.37640E-07** at limit **
  19  Prefactor     3.9271        43.724        .22296E-04   -.25161E-04
  20  Normalizat    .55542        .13383        .11376E-05    .18444E-03
  21  Prefactor     1.0594        .15898       -.34814E-06    .27625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.167584
  Prefactor  = 12.8489
  norm       = 20.7643
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35652
  norm       = 0.67004
  Prefactor  = 11.1019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81495
  norm       = 0.0001
  Prefactor  = 7.3576
  Prefactor  = 1.9085
  norm       = 0.606401
  norm       = 2.65033
  norm       = 0.0001
  Prefactor  = 3.9271
  Normalizat = 0.555416
  Prefactor  = 1.05943
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.472     FROM HESSE     STATUS=OK           327 CALLS     2258 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16758        79.985        .38151E-02   -1.5626    
   2  Prefactor     12.849        13.829        .11161E-03   -1.4991    
   3  norm          20.764        11.363        .87858E-04   -1.4796    
   4  norm          .10000E-03    .96858        .72494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.329        .20748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3565        7.7941        .27029E-03   -1.5401    
   7  norm          .67004        2.0176        .18178E-03   -1.5544    
   8  Prefactor     11.102        6.2177        .12043E-03   -1.5041    
   9  Prefactor     .10000E-03    5.0764        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7247        .22680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8149        1.9477        .81303E-04   -1.5372    
  13  norm          .10000E-03    .71834        .61942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3576        10.878        .14754E-03   -1.5165    
  15  Prefactor     1.9085        3.0888        .15486E-03   -1.5432    
  16  norm          .60640        .71492        .70707E-03   -1.5552    
  17  norm          2.6503        1.9565        .83773E-04   -1.5382    
  18  norm          .10000E-03    1.1109        .15176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9271        43.173        .20542E-03   -1.5312    
  20  Normalizat    .55542        .15389        .22703E-03   -1.0991    
  21  Prefactor     1.0594        .18570        .20738E-03   -.90774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55104e-09
Minuit parameter uncertainties:
  1  7.33
  2  13.8323
  3  11.3644
  4  8.47173e-07
  5  6.76483e-05
  6  7.79744
  7  2.01776
  8  6.21807
  9  3.7518e-05
  10  8.48126e-06
  11  2.49659e-05
  12  1.94774
  13  7.03142e-06
  14  10.8806
  15  3.08904
  16  0.714931
  17  1.95658
  18  2.29604e-06
  19  26.0656
  20  0.15401
  21  0.185813
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.110e+01  6.218e+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:  1.059e+00  1.858e-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:  5.554e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 16.215 -24.281
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.96e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 8.82e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5701.47175798
delta logL = 7.70400201873e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5701.47172195
delta logL = 0.000113071562737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5797       1.0000          .0000       10.000    
     3 'Normalizat'    .55627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5701.472     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      270 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.145        7.0510        .60023E-03    .11427E-03
   2  Index         2.5809        .74629        .83929E-02    .20539E-03
   3  Normalizat    .55619        .15790        .22688E-03   -.15032E-05
   4  Prefactor     1.0588        .18750        .20744E-03   -.11509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1454
  Index      = 2.58086
  Normalizat = 0.556192
  Prefactor  = 1.05878
 **********
 **   18 **HESSE 
 **********

 FCN=   5701.472     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.145        6.8646        .12005E-03   -1.5040    
   2  Index         2.5809        .72482        .16786E-02   -.50502    
   3  Normalizat    .55619        .15765        .90753E-05   -1.0988    
   4  Prefactor     1.0588        .18734        .82976E-05   -.90795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8207e-12
Minuit parameter uncertainties:
  1  6.86508
  2  0.728175
  3  0.15778
  4  0.18746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335019': 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) = 5701.47171836
delta logL = 0.000116660576168

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.115e+01  6.865e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.581e+00  7.282e-01  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:  1.059e+00  1.875e-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:  5.562e-01  1.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 2.58 +/- 0.73
Photon Flux (Free Index): 5.91e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.58e-05 +/- 9.23e-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/335019/cmap_HighResolution_565660801_565920001_4FGL_J0104.8-2416_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.96e-08', energy_flux2='1.58e-05', photon_flux_error='3.34e-08', dlogl='1.17e-04', energy_flux='1.58e-05', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-08-13 12:01:45.148089', photon_index_error2='0.73', photon_index2='2.58', ts='5.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.23e-06', EG='0.56', time_epoch_completed='1628881305.15', return_code='0', job_id='335019', GAL2='1.06', EG2='0.56', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='4.55e-08', ts2='5.45', photon_index='2.59' WHERE bin_id='1259' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 335019: <4FGL_J0104.8-2416_daily_bin1259> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1259> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:32 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:51:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:51:02 2021
Terminated at Fri Aug 13 12:01:46 2021
Results reported at Fri Aug 13 12:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1259 16.2146 -24.2808 565660801 565920001 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 :                                   604.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            674 sec.

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

