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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1392
RA = 16.2146, Dec = -24.2808
tmin = 600134401, tmax = 600393601
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='335212', job_status='RUN', time_executed='2021-08-13 11:56:08.590713', time_epoch_executed='1628880968.59' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335212/ft1_4FGL_J0104.8-2416_daily_bin1392.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335212/ft1_4FGL_J0104.8-2416_daily_bin1392.fits outfile=/scratch/kocevski/335212/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1392.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=600134401.0 tmax=600393601.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 14.91
user 4.63
sys 10.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits" evtable="EVENTS" scfile=/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits sctable="SC_DATA" outfile=/scratch/kocevski/335212/ltcube_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.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/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits
.....................!
real 24.93
user 13.54
sys 11.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits sctable="SC_DATA" expcube=/scratch/kocevski/335212/ltcube_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.fits outfile=/scratch/kocevski/335212/expmap_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.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/335212/ltcube_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.fits
.....................!
real 205.85
user 187.48
sys 17.92

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/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits scfile=/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits outfile=/scratch/kocevski/335212/cmap_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.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 10.19
user 0.39
sys 9.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits scfile=/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits outfile=/scratch/kocevski/335212/cmap_HighResolution_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.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 10.17
user 0.39
sys 9.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits evtable="EVENTS" scfile=/scratch/kocevski/335212/ft2_4FGL_J0104.8-2416_daily_bin1392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335212/Model_4FGL_J0104.8-2416_daily_bin1392.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/335212/ft1_filtered_4FGL_J0104.8-2416_daily_bin1392.fits.....................!
real 47.56
user 32.97
sys 13.86

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68508E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.262       1.0000         .10000E-03   10000.    
     4 'norm      '    8.2953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4913       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44452E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3386       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1801       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2863       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0223       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .74219       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4302       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=   3347.100     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     1964 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29636        23.191       -.22489E-05    .17654E-03
   2  Prefactor     .10000E-03    99.575        .67147E-04** at limit **
   3  norm          12.274        18.886       -.61581E-05   -.13073E-03
   4  norm          8.2848        7.9634       -.71180E-06    .38117E-04
   5  Prefactor     .10000E-03    42.020        .70231E-05** at limit **
   6  norm          .10000E-03    8.3160        .10275E-05** at limit **
   7  norm          2.7378        4.0931       -.24675E-06   -.18659E-03
   8  Prefactor     23.169        13.955       -.67706E-06   -.58034E-04
   9  Prefactor     .10000E-03    8.3680       -.11052E-05** at limit **
  10  Prefactor     4.4918        4.4933       -.33409E-06    .72318E-04
  11  Prefactor     .10003E-03    19.582       -.38937E-06** at limit **
  12  norm          .10000E-03    3.1621        .59406E-06** at limit **
  13  norm          2.3404        2.7075       -.21148E-06   -.14912E-03
  14  Prefactor     2.1761        17.557        .32918E-05   -.15063E-03
  15  Prefactor     5.2900        8.3024       -.96873E-06   -.42777E-03
  16  norm          1.0237        1.8216       -.25699E-06   -.60899E-03
  17  norm          .10000E-03    1.7834        .20425E-06** at limit **
  18  norm          1.0254        2.6897       -.29333E-06   -.54044E-03
  19  Prefactor     .10000E-03    49.007       -.14957E-04** at limit **
  20  Normalizat    .74237        .24652        .15451E-06   -.11227E-03
  21  Prefactor     1.4298        .27644        .87204E-06   -.15579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.296359
  Prefactor  = 0.000100002
  norm       = 12.2737
  norm       = 8.2848
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.73776
  Prefactor  = 23.1692
  Prefactor  = 0.0001
  Prefactor  = 4.49184
  Prefactor  = 0.000100028
  norm       = 0.0001
  norm       = 2.34038
  Prefactor  = 2.17605
  Prefactor  = 5.29002
  norm       = 1.0237
  norm       = 0.0001
  norm       = 1.02541
  Prefactor  = 0.0001
  Normalizat = 0.742373
  Prefactor  = 1.42975
 **********
 **   18 **HESSE 
 **********

 FCN=   3347.100     FROM HESSE     STATUS=OK           333 CALLS     2297 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29636        40.131        .77932E-01   -1.5599    
   2  Prefactor     .10000E-03    99.274        .20992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.274        19.011        .11439E-03   -1.5007    
   4  norm          8.2848        7.9657        .13919E-03   -1.5132    
   5  Prefactor     .10000E-03    42.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.3253        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7378        4.0823        .13814E-03   -1.5377    
   8  Prefactor     23.169        13.983        .83235E-04   -1.4745    
   9  Prefactor     .10000E-03    8.3760        .16341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4918        4.4962        .11939E-03   -1.5284    
  11  Prefactor     .10003E-03    64.527        .42191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4640        .17060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3404        2.6896        .98433E-04   -1.5402    
  14  Prefactor     2.1761        17.328        .27882E-03   -1.5413    
  15  Prefactor     5.2900        7.3272        .17036E-03   -1.5248    
  16  norm          1.0237        1.6630        .98277E-03   -1.5506    
  17  norm          .10000E-03    1.8463        .15067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0254        2.6238        .14874E-03   -1.5505    
  19  Prefactor     .10000E-03    49.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .74237        .30352        .27874E-03   -1.0224    
  21  Prefactor     1.4298        .34149        .24299E-03   -.79527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53012e-09
Minuit parameter uncertainties:
  1  6.9009
  2  0.000882181
  3  19.0204
  4  7.96671
  5  4.20046e-06
  6  1.12034e-06
  7  4.08275
  8  13.9848
  9  8.32486e-06
  10  4.49656
  11  0.00270765
  12  6.31363e-05
  13  2.68978
  14  12.2856
  15  7.32844
  16  1.66303
  17  5.26733e-07
  18  2.62405
  19  3.29663e-06
  20  0.304216
  21  0.342039
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.317e+01  1.398e+01  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.430e+00  3.420e-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.424e-01  3.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.14
Ra Dec: 16.215 -24.281
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 7.50e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.98e-05

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) = 3345.79389329
delta logL = 1.30561372099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3345.78287167
delta logL = 1.31663533736

Fit tolerance = 1e-08

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

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

 FCN=   3345.783     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      294 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4971        13.484        .76458E-04    .32504E-03
   2  Index         3.7638        1.0545        .36599E-02    .66146E-04
   3  Normalizat    .61857        .29983        .30210E-03   -.24461E-04
   4  Prefactor     1.5380        .34573        .23556E-03   -.58097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.49715
  Index      = 3.76384
  Normalizat = 0.618575
  Prefactor  = 1.53802
 **********
 **   18 **HESSE 
 **********

 FCN=   3345.783     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4971        11.111        .30583E-05   -1.5092    
   2  Index         3.7638        .87063        .14640E-03   -.24982    
   3  Normalizat    .61857        .29980        .12084E-04   -1.0720    
   4  Prefactor     1.5380        .34521        .47113E-04   -.76480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24245e-11
Minuit parameter uncertainties:
  1  11.1136
  2  0.875382
  3  0.300593
  4  0.345735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335212': 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) = 3345.78287022
delta logL = 1.31663678356

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  9.497e+00  1.111e+01  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  3.764e+00  8.754e-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.538e+00  3.457e-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.186e-01  3.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.26
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 3.76 +/- 0.88
Photon Flux (Free Index): 2.20e-07 +/- 1.05e-07
Energy Flux (Free Index): 3.44e-05 +/- 1.62e-05

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/335212/cmap_HighResolution_600134401_600393601_4FGL_J0104.8-2416_daily_bin1392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.44e-05', photon_flux_error='7.50e-08', dlogl='1.32e+00', energy_flux='3.29e-05', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-08-13 12:06:23.281970', photon_index_error2='0.88', photon_index2='3.76', ts='5.14', fit_tolerance='1e-08', GAL='1.43', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.74', time_epoch_completed='1628881583.28', return_code='0', job_id='335212', GAL2='1.54', EG2='0.62', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='1.05e-07', ts2='8.26', photon_index='2.59' WHERE bin_id='1392' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:06:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 335212: <4FGL_J0104.8-2416_daily_bin1392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1392 16.2146 -24.2808 600134401 600393601 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             186.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            943 sec.

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

