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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1101
RA = 16.2146, Dec = -24.2808
tmin = 524707201, tmax = 524966401
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='333714', job_status='RUN', time_executed='2021-08-13 11:50:15.984395', time_epoch_executed='1628880615.98' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333714

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333714/ft1_4FGL_J0104.8-2416_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333714/ft1_4FGL_J0104.8-2416_daily_bin1101.fits outfile=/scratch/kocevski/333714/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1101.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=524707201.0 tmax=524966401.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.52
user 3.21
sys 0.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/333714/ltcube_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.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/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits
.....................!
real 14.41
user 13.17
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/333714/ltcube_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.fits outfile=/scratch/kocevski/333714/expmap_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.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/333714/ltcube_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.fits
.....................!
real 193.62
user 186.16
sys 6.14

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/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits scfile=/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits outfile=/scratch/kocevski/333714/cmap_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.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 1.28
user 0.36
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits scfile=/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits outfile=/scratch/kocevski/333714/cmap_HighResolution_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.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 1.36
user 0.36
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/333714/ft2_4FGL_J0104.8-2416_daily_bin1101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333714/Model_4FGL_J0104.8-2416_daily_bin1101.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/333714/ft1_filtered_4FGL_J0104.8-2416_daily_bin1101.fits.....................!
real 51.82
user 48.80
sys 2.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.6469       1.0000         .10000E-03   10000.    
     4 'norm      '    11.096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.918       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6201       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6327       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81081       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79412       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=   6186.962     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1894 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7733        .90712E-02** at limit **
   2  Prefactor     .10000E-03    14.464        .90712E-02** at limit **
   3  norm          7.6469        7.8079        .36254E-02   -.66696E-04
   4  norm          11.097        5.3478        .30067E-02   -.92140E-03
   5  Prefactor     .10000E-03    37.710        .90712E-02** at limit **
   6  norm          .10000E-03    2.8988        .90712E-02** at limit **
   7  norm          4.1505        2.2929        .49461E-02   -.23427E-04
   8  Prefactor     3.8248        5.1644        .51597E-02    .14819E-02
   9  Prefactor     .10000E-03    3.4480        .90712E-02** at limit **
  10  Prefactor     .18731        1.8804        .67068E-01    .34947E-03
  11  Prefactor     10.920        7.9703        .30312E-02    .39917E-03
  12  norm          .10000E-03    1.0237        .29682E-01** at limit **
  13  norm          2.6201        1.4502        .62992E-02   -.10627E-03
  14  Prefactor     .10000E-03    3.2110        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.7361        .90712E-02** at limit **
  16  norm          4.6328        1.3514        .46748E-02    .94809E-04
  17  norm          .10000E-03    .57283        .90712E-02** at limit **
  18  norm          1.8060        1.9198        .77750E-02    .42953E-03
  19  Prefactor     .10000E-03    12.795        .90712E-02** at limit **
  20  Normalizat    .81076        .13123        .43751E-01    .10591E-04
  21  Prefactor     .79413        .15054        .43641E-01    .12498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.6469
  norm       = 11.0967
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.15051
  Prefactor  = 3.8248
  Prefactor  = 0.0001
  Prefactor  = 0.187307
  Prefactor  = 10.9199
  norm       = 0.0001
  norm       = 2.6201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63282
  norm       = 0.0001
  norm       = 1.80596
  Prefactor  = 0.0001
  Normalizat = 0.810758
  Prefactor  = 0.794134
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.962     FROM HESSE     STATUS=OK           323 CALLS     2217 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.7798        .14921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6469        7.8099        .14502E-03   -1.5155    
   4  norm          11.097        5.3509        .12027E-03   -1.5042    
   5  Prefactor     .10000E-03    37.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9006        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1505        2.2932        .85971E-04   -1.5300    
   8  Prefactor     3.8248        5.1662        .19576E-03   -1.5317    
   9  Prefactor     .10000E-03    3.4549        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18731        17.204        .20598E-02   -1.5621    
  11  Prefactor     10.920        7.3845        .12125E-03   -1.5047    
  12  norm          .10000E-03    1.3022        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6201        1.4526        .68571E-04   -1.5384    
  14  Prefactor     .10000E-03    3.2172        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8131        .20200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6328        1.3532        .47356E-04   -1.5277    
  17  norm          .10000E-03    .58887        .11611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8060        1.9073        .10770E-03   -1.5439    
  19  Prefactor     .10000E-03    12.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .81076        .15517        .20203E-03   -.99671    
  21  Prefactor     .79413        .17689        .24135E-03   -.99945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.563e-08
Minuit parameter uncertainties:
  1  1.90886e-05
  2  4.79004e-05
  3  7.81099
  4  5.35115
  5  4.50175e-05
  6  3.8178e-06
  7  2.29327
  8  5.16683
  9  3.77599e-05
  10  3.59035
  11  7.38516
  12  6.17382e-07
  13  1.45264
  14  2.16315e-05
  15  4.26322e-07
  16  1.35321
  17  2.903e-07
  18  1.9074
  19  3.8078e-05
  20  0.155256
  21  0.17702
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  3.825e+00  5.167e+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.941e-01  1.770e-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:  8.108e-01  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333714/likelihoodResults_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.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): 0
logL (Free Index) = 6186.67855187
delta logL = 0.283294892763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.67807241
delta logL = 0.283774351375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4599       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4456       1.0000          .0000       10.000    
     3 'Normalizat'    .78783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81150       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=   6186.678     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      266 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4554        49.098        .65190E-02    .62202E-03
   2  Index         3.4487        3.9739        .21255        .82963E-04
   3  Normalizat    .78783        .34668E-01    .43451E-01    .77901E-05
   4  Prefactor     .81149        .41062E-01    .43867E-01    .13319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45539
  Index      = 3.4487
  Normalizat = 0.787828
  Prefactor  = 0.811495
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.678     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4554        5.6853        .11326E-03   -1.5395    
   2  Index         3.4487        1.6590        .79911E-02   -.31547    
   3  Normalizat    .78783        .15363        .20460E-03   -1.0052    
   4  Prefactor     .81149        .17905        .23899E-03   -.99306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24182e-11
Minuit parameter uncertainties:
  1  5.68652
  2  1.6947
  3  0.153717
  4  0.179183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333714': 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) = 6186.67806804
delta logL = 0.283778719619

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.455e+00  5.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  3.449e+00  1.695e+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:  8.115e-01  1.792e-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:  7.878e-01  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 3.45 +/- 1.69
Photon Flux (Free Index): 3.73e-08 +/- 3.70e-08
Energy Flux (Free Index): 6.30e-06 +/- 6.60e-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/333714/cmap_HighResolution_524707201_524966401_4FGL_J0104.8-2416_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', energy_flux2='6.30e-06', dlogl='2.84e-01', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-08-13 12:00:28.757090', photon_index_error2='1.69', photon_index2='3.45', ts='0.69', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='6.60e-06', EG='0.81', time_epoch_completed='1628881228.76', return_code='0', job_id='333714', GAL2='0.81', EG2='0.79', return_code2='0', photon_flux_error2='3.70e-08', ts2='1.29', photon_index='2.59' WHERE bin_id='1101' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 333714: <4FGL_J0104.8-2416_daily_bin1101> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1101> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:45:45 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:47:13 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:47:13 2021
Terminated at Fri Aug 13 12:00:29 2021
Results reported at Fri Aug 13 12:00:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1101 16.2146 -24.2808 524707201 524966401 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 :                                   619.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            884 sec.

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

