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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1081
RA = 16.2146, Dec = -24.2808
tmin = 519523201, tmax = 519782401
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='333685', job_status='RUN', time_executed='2021-08-13 11:48:37.283754', time_epoch_executed='1628880517.28' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333685

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333685/ft1_4FGL_J0104.8-2416_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333685/ft1_4FGL_J0104.8-2416_daily_bin1081.fits outfile=/scratch/kocevski/333685/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1081.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=519523201.0 tmax=519782401.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.88
user 2.72
sys 4.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.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/333685/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.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 4.42
user 0.33
sys 3.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/333685/ltcube_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.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/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits
.....................!
real 15.17
user 10.27
sys 4.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/333685/ltcube_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.fits outfile=/scratch/kocevski/333685/expmap_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.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/333685/ltcube_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.fits
.....................!
real 198.99
user 186.39
sys 10.49

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/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits outfile=/scratch/kocevski/333685/cmap_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.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 4.37
user 0.39
sys 3.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits outfile=/scratch/kocevski/333685/cmap_HighResolution_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.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 4.40
user 0.37
sys 3.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/333685/ft2_4FGL_J0104.8-2416_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333685/Model_4FGL_J0104.8-2416_daily_bin1081.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/333685/ft1_filtered_4FGL_J0104.8-2416_daily_bin1081.fits.....................!
real 48.92
user 41.84
sys 6.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1732       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5968       1.0000         .10000E-03   10000.    
     4 'norm      '    19.080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .50329E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12156E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1699       1.0000         .10000E-03   10000.    
    17 'norm      '    .45861E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4209       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .30791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4834.718     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     1543 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1581        1.3278       -.15217E-06   -.44356E-04
   2  Prefactor     15.288        1.1763       -.19403E-06    .15348E-02
   3  norm          9.5963        1.0018       -.32498E-08   -.33470E-04
   4  norm          19.081        1.0026       -.71633E-08    .22428E-04
   5  Prefactor     .10000E-03    23.319       -.36151E-05** at limit **
   6  norm          .10000E-03    .81231        .10999E-05** at limit **
   7  norm          4.9124        3.6727        .21128E-05    .48220E-03
   8  Prefactor     .10000E-03    2.6338       -.42756E-05** at limit **
   9  Prefactor     .10000E-03    6.4362        .15529E-05** at limit **
  10  Prefactor     11.004        1.0171        .64528E-07    .41777E-04
  11  Prefactor     .10000E-03    4.2739        .16453E-05** at limit **
  12  norm          .10000E-03    .76018        .57476E-06** at limit **
  13  norm          2.1457        1.9192       -.15930E-06   -.16914E-05
  14  Prefactor     .10002E-03    8.6253       -.25325E-05** at limit **
  15  Prefactor     .10006E-03    4.3264       -.27172E-05** at limit **
  16  norm          3.1696        1.3481        .36335E-06    .41813E-04
  17  norm          .10000E-03    .52320        .23725E-07** at limit **
  18  norm          2.4524        2.0949       -.38831E-07    .46640E-05
  19  Prefactor     .10001E-03    11.942        .49641E-05** at limit **
  20  Normalizat    1.4207        .19231       -.61591E-07    .10508E-04
  21  Prefactor     .30823        .21033        .38254E-05    .49597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.15808
  Prefactor  = 15.2879
  norm       = 9.5963
  norm       = 19.0806
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 4.91243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0041
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.14571
  Prefactor  = 0.000100019
  Prefactor  = 0.000100061
  norm       = 3.16963
  norm       = 0.000100001
  norm       = 2.45237
  Prefactor  = 0.000100013
  Normalizat = 1.4207
  Prefactor  = 0.308228
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.718     FROM HESSE     STATUS=OK           379 CALLS     1922 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1581        29.954        .10581E-01   -1.5493    
   2  Prefactor     15.288        18.365        .25607E-02   -1.4926    
   3  norm          9.5963        9.3662        .32340E-02   -1.5088    
   4  norm          19.081        7.3044        .22924E-02   -1.4834    
   5  Prefactor     .10000E-03    23.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.1046        .70484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9124        3.7098        .45365E-02   -1.5265    
   8  Prefactor     .10000E-03    2.6177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.004        6.8300        .30192E-02   -1.5044    
  11  Prefactor     .10000E-03    4.2526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .75150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1457        1.9126        .70324E-02   -1.5415    
  14  Prefactor     .10002E-03    11.152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    2.3568        .61420E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1696        1.3500        .56907E-02   -1.5352    
  17  norm          .10000E-03    .99517        .45470E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4524        2.1077        .65303E-02   -1.5395    
  19  Prefactor     .10001E-03    14.121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4207        .19330        .30930E-01   -.80032    
  21  Prefactor     .30823        .21361        .90769E-01   -1.2178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43929e-07
Minuit parameter uncertainties:
  1  11.7857
  2  18.3717
  3  9.36761
  4  7.30474
  5  0.00031656
  6  0.000195395
  7  3.71001
  8  2.9626e-06
  9  5.60131e-05
  10  6.83051
  11  9.00767e-07
  12  1.83836e-08
  13  1.91261
  14  0.00093031
  15  0.000756938
  16  1.35003
  17  7.33992e-05
  18  2.10776
  19  0.000850271
  20  0.193398
  21  0.214156
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.963e-06  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:  3.082e-01  2.142e-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.421e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/333685/likelihoodResults_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.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) = 4834.71972371
delta logL = -0.00179396971089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4834.71792974
delta logL = 1.70439307112e-09

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4834.718     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    136.27        .11010E-02** at limit **
   2  Index         2.5153        5.9392        .50000        .19015E-04
   3  Normalizat    1.4207        .31144E-01    .17990E-03   -.13839E-04
   4  Prefactor     .30823        .34485E-01    .40221E-03   -.52857E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4834.718     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      381 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    136.27        .24926E-03** at limit **
   2  Index         2.5153        5.9392        .12346E-03    .19015E-04
   3  Normalizat    1.4207        .31144E-01    .93716E-06   -.13839E-04
   4  Prefactor     .30823        .34485E-01    .15419E-05   -.52857E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4834.718     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      421 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    618.34        .22021E-03** at limit **
   2  Index         2.3243        5.5168        .50000       -.40586E-07
   3  Normalizat    1.4207        .12571        .71961E-05    .79940E-04
   4  Prefactor     .30823        .13905        .16088E-04    .39290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32434
  Normalizat = 1.4207
  Prefactor  = 0.308228
 **********
 **   18 **HESSE 
 **********

 FCN=   4834.718     FROM HESSE     STATUS=OK            29 CALLS      450 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9156        .44042E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3243        6.1615        .50000       -.56466    
   3  Normalizat    1.4207        .19023        .14392E-05   -.80032    
   4  Prefactor     .30823        .21029        .32176E-05   -1.2178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67278e-12
Minuit parameter uncertainties:
  1  4.0897e-07
  2  110.504
  3  0.19032
  4  0.210809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333685': 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) = 4834.71792892
delta logL = 8.17815816845e-07

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  4.090e-07  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.324e+00  1.105e+02  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:  3.082e-01  2.108e-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.421e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.215 -24.281

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/333685/cmap_HighResolution_519523201_519782401_4FGL_J0104.8-2416_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-08-13 11:58:18.298723', job_id='333685', GAL2='0.31', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1628881098.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='8.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1081' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:58:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 333685: <4FGL_J0104.8-2416_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1081 16.2146 -24.2808 519523201 519782401 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 :                                   635.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            756 sec.

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

