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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1579
RA = 16.2146, Dec = -24.2808
tmin = 648604801, tmax = 648864001
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='336510', job_status='RUN', time_executed='2021-08-13 11:57:33.389235', time_epoch_executed='1628881053.39' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336510/ft1_4FGL_J0104.8-2416_daily_bin1579.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336510/ft1_4FGL_J0104.8-2416_daily_bin1579.fits outfile=/scratch/kocevski/336510/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1579.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=648604801.0 tmax=648864001.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 3.88
user 2.76
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.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/336510/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1579.fits evtable="EVENTS" outfile="/scratch/kocevski/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.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.41
user 0.35
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits" evtable="EVENTS" scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits sctable="SC_DATA" outfile=/scratch/kocevski/336510/ltcube_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.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/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits
.....................!
real 14.69
user 13.29
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits sctable="SC_DATA" expcube=/scratch/kocevski/336510/ltcube_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.fits outfile=/scratch/kocevski/336510/expmap_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.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/336510/ltcube_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.fits
.....................!
real 193.20
user 185.75
sys 7.00

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/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits outfile=/scratch/kocevski/336510/cmap_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.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.41
user 0.37
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits outfile=/scratch/kocevski/336510/cmap_HighResolution_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.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.40
user 0.37
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits evtable="EVENTS" scfile=/scratch/kocevski/336510/ft2_4FGL_J0104.8-2416_daily_bin1579.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336510/Model_4FGL_J0104.8-2416_daily_bin1579.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/336510/ft1_filtered_4FGL_J0104.8-2416_daily_bin1579.fits.....................!
real 55.42
user 52.82
sys 2.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9167       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2868       1.0000         .10000E-03   10000.    
     4 'norm      '    92.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5203       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0678       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.074       1.0000         .10000E-03   10000.    
    12 'norm      '    .11308E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6391       1.0000         .10000E-03   10000.    
    17 'norm      '    .45263       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62093       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2307       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=   6953.994     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1971 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7031        .28910E-06** at limit **
   2  Prefactor     2.8912        39.790       -.23823E-04   -.12592E-04
   3  norm          6.2870        13.025        .22600E-05    .43346E-04
   4  norm          92.801        12.291        .83020E-06    .59170E-04
   5  Prefactor     .10000E-03    63.686        .30431E-05** at limit **
   6  norm          1.5219        2.5415        .65659E-06   -.95848E-03
   7  norm          3.0678        2.5117        .65006E-08   -.34955E-05
   8  Prefactor     .10000E-03    5.5758       -.30909E-06** at limit **
   9  Prefactor     .10000E-03    9.3356       -.11414E-06** at limit **
  10  Prefactor     .10000E-03    2.0099        .48525E-06** at limit **
  11  Prefactor     35.062        11.045        .12003E-05    .20972E-03
  12  norm          .10000E-03    1.2981       -.48476E-06** at limit **
  13  norm          3.8923        2.0726       -.55932E-07    .14863E-04
  14  Prefactor     31.726        16.472        .18420E-06    .28415E-04
  15  Prefactor     .10000E-03    2.8129        .40984E-06** at limit **
  16  norm          1.6391        1.0152       -.55515E-07   -.28248E-04
  17  norm          .45251        1.3040       -.71032E-06   -.39011E-03
  18  norm          .10000E-03    1.1667        .34384E-06** at limit **
  19  Prefactor     .10000E-03    17.948        .55996E-06** at limit **
  20  Normalizat    .62089        .15055       -.10673E-05    .63847E-04
  21  Prefactor     1.2307        .17731        .10272E-05   -.73739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.89123
  norm       = 6.28695
  norm       = 92.8008
  Prefactor  = 0.0001
  norm       = 1.52192
  norm       = 3.0678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0625
  norm       = 0.0001
  norm       = 3.89225
  Prefactor  = 31.7255
  Prefactor  = 0.0001
  norm       = 1.63911
  norm       = 0.452509
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.620887
  Prefactor  = 1.2307
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.994     FROM HESSE     STATUS=OK           319 CALLS     2290 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7045        .15671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8912        39.590        .23788E-03   -1.5368    
   3  norm          6.2870        13.071        .16009E-03   -1.5206    
   4  norm          92.801        12.276        .41716E-04   -1.3778    
   5  Prefactor     .10000E-03    63.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5219        11.697        .17326E-02   -1.5461    
   7  norm          3.0678        2.5153        .11577E-03   -1.5358    
   8  Prefactor     .10000E-03    5.7722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0626        .23076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.062        10.992        .67666E-04   -1.4523    
  12  norm          .10000E-03    1.3429        .18425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8923        2.0717        .83403E-04   -1.5313    
  14  Prefactor     31.726        16.379        .71131E-04   -1.4581    
  15  Prefactor     .10000E-03    2.9303        .27237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6391        1.0073        .63492E-04   -1.5452    
  17  norm          .45251        1.2721        .15127E-03   -1.5573    
  18  norm          .10000E-03    1.8691        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .62089        .17709        .27774E-03   -1.0710    
  21  Prefactor     1.2307        .21220        .24613E-03   -.85392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35192e-09
Minuit parameter uncertainties:
  1  2.19481e-06
  2  21.4143
  3  13.0773
  4  12.2759
  5  1.73933e-05
  6  8.44031
  7  2.51537
  8  2.09478e-05
  9  1.38358e-05
  10  1.85481e-06
  11  10.9929
  12  2.57352e-05
  13  2.07174
  14  16.3814
  15  1.49216e-05
  16  1.00734
  17  1.27214
  18  1.20986e-05
  19  4.61991e-06
  20  0.177254
  21  0.212349
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  2.095e-05  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.231e+00  2.123e-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:  6.209e-01  1.773e-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: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336510/likelihoodResults_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.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) = 6953.99475463
delta logL = -0.000826821100418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6953.99392847
delta logL = -6.58154021949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5960       1.0000          .0000       10.000    
     3 'Normalizat'    .62074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2309       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=   6953.994     FROM MIGRAD    STATUS=FAILED        92 CALLS      253 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    831.78        .36285E-03** at limit **
   2  Index         2.6428        5.8633        .50000       -.43627E-05
   3  Normalizat    .62089        .56618E-01    .27774E-03    .45272E-04
   4  Prefactor     1.2307        .68757E-01    .24613E-03    .45958E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6953.994     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      401 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    831.78        .41608E-03** at limit **
   2  Index         2.6428        5.8633        .11269E-04   -.43627E-05
   3  Normalizat    .62089        .56618E-01    .49962E-06    .45272E-04
   4  Prefactor     1.2307        .68757E-01    .30593E-06    .45958E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6953.994     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      440 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8649        .72569E-04** at limit **
   2  Index         2.7610        6.8645        .20000       -.17224E-07
   3  Normalizat    .62089        .16892        .11109E-04   -.11871E-04
   4  Prefactor     1.2307        .20574        .98453E-05   -.15473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.76098
  Normalizat = 0.620885
  Prefactor  = 1.23071
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.994     FROM HESSE     STATUS=OK            25 CALLS      465 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8516        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7610        5.9636        .80000E-02   -.46431    
   3  Normalizat    .62089        .16881        .22219E-05   -1.0710    
   4  Prefactor     1.2307        .20562        .19691E-05   -.85392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13884e-13
Minuit parameter uncertainties:
  1  6.02732e-06
  2  367.497
  3  0.168954
  4  0.205759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336510': 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) = 6953.9939277
delta logL = 1.17051968118e-07

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  6.027e-06  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.761e+00  3.675e+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:  1.231e+00  2.058e-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:  6.209e-01  1.690e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/336510/cmap_HighResolution_648604801_648864001_4FGL_J0104.8-2416_daily_bin1579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.28e-08', time_completed='2021-08-13 12:08:43.475269', job_id='336510', GAL2='1.23', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1628881723.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1579' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 336510: <4FGL_J0104.8-2416_daily_bin1579> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1579> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 11:55:32 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:55:45 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:55:45 2021
Terminated at Fri Aug 13 12:08:44 2021
Results reported at Fri Aug 13 12:08:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1579 16.2146 -24.2808 648604801 648864001 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            792 sec.

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

