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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1056
RA = 16.2146, Dec = -24.2808
tmin = 513043201, tmax = 513302401
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='333649', job_status='RUN', time_executed='2021-08-13 11:49:32.597065', time_epoch_executed='1628880572.6' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333649/ft1_4FGL_J0104.8-2416_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333649/ft1_4FGL_J0104.8-2416_daily_bin1056.fits outfile=/scratch/kocevski/333649/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1056.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=513043201.0 tmax=513302401.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 11.64
user 6.08
sys 5.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/333649/ltcube_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.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/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits
.....................!
real 18.98
user 12.79
sys 6.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/333649/ltcube_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.fits outfile=/scratch/kocevski/333649/expmap_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.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/333649/ltcube_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.fits
.....................!
real 201.19
user 186.98
sys 11.28

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/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits scfile=/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits outfile=/scratch/kocevski/333649/cmap_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.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 5.60
user 0.39
sys 5.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits scfile=/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits outfile=/scratch/kocevski/333649/cmap_HighResolution_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.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 5.75
user 0.40
sys 5.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/333649/ft2_4FGL_J0104.8-2416_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333649/Model_4FGL_J0104.8-2416_daily_bin1056.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/333649/ft1_filtered_4FGL_J0104.8-2416_daily_bin1056.fits.....................!
real 45.23
user 33.87
sys 7.93

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.084       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8765       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 '    4.1191       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4034       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0068       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.5907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    130.71       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67722       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3370       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=   3647.287     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2454 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.972       -.25122E-06** at limit **
   2  Prefactor     .10000E-03    12.691        .12992E-06** at limit **
   3  norm          .10000E-03    8.1626        .32334E-07** at limit **
   4  norm          25.733        10.948        .15968E-07   -.13986E-05
   5  Prefactor     43.159        160.63        .24268E-05    .26885E-04
   6  norm          .10000E-03    11.589        .49957E-06** at limit **
   7  norm          .10000E-03    1.4192       -.54432E-07** at limit **
   8  Prefactor     3.8770        14.494        .60730E-06   -.15671E-05
   9  Prefactor     .10000E-03    21.258       -.50315E-06** at limit **
  10  Prefactor     .10000E-03    2.1567       -.82803E-07** at limit **
  11  Prefactor     4.1234        20.077       -.42619E-05    .25736E-04
  12  norm          2.4030        3.6560        .20935E-05    .70514E-04
  13  norm          3.0068        2.8597       -.20565E-07    .46802E-05
  14  Prefactor     16.274        19.750       -.15963E-06   -.53506E-04
  15  Prefactor     .10000E-03    2.8085       -.83946E-07** at limit **
  16  norm          .10000E-03    1.6225       -.17588E-06** at limit **
  17  norm          .10000E-03    1.9667       -.83749E-08** at limit **
  18  norm          9.5904        5.6488        .70681E-07   -.30930E-06
  19  Prefactor     130.76        102.99        .78773E-06    .85481E-04
  20  Normalizat    .67693        .23345       -.19810E-05    .59184E-04
  21  Prefactor     1.3374        .25162        .13300E-05   -.24264E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.7332
  Prefactor  = 43.1594
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.87699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12337
  norm       = 2.40305
  norm       = 3.00677
  Prefactor  = 16.2744
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.59039
  Prefactor  = 130.764
  Normalizat = 0.676927
  Prefactor  = 1.33739
 **********
 **   18 **HESSE 
 **********

 FCN=   3647.287     FROM HESSE     STATUS=OK           313 CALLS     2767 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1706        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.733        10.943        .78970E-04   -1.4693    
   5  Prefactor     43.159        160.53        .61076E-04   -1.4393    
   6  norm          .10000E-03    11.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4259        .70257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8770        14.347        .20494E-03   -1.5314    
   9  Prefactor     .10000E-03    21.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1713        .86601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1234        20.186        .19862E-03   -1.5302    
  12  norm          2.4030        3.6851        .53494E-03   -1.5398    
  13  norm          3.0068        2.8545        .94646E-04   -1.5361    
  14  Prefactor     16.274        19.726        .99261E-04   -1.4901    
  15  Prefactor     .10000E-03    2.8189        .98778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7474        .14666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0168        .16514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5904        5.6493        .10346E-03   -1.5089    
  19  Prefactor     130.76        102.84        .17609E-03   -1.3416    
  20  Normalizat    .67693        .27428        .28259E-03   -1.0481    
  21  Prefactor     1.3374        .29947        .24162E-03   -.82202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49105e-10
Minuit parameter uncertainties:
  1  3.4646e-05
  2  4.89577e-05
  3  6.20524e-06
  4  10.9438
  5  162.182
  6  1.39077e-05
  7  1.15829e-07
  8  14.36
  9  3.7508e-05
  10  9.729e-07
  11  18.2563
  12  3.68541
  13  2.85461
  14  19.7337
  15  4.20133e-06
  16  6.68956e-05
  17  1.22264e-06
  18  5.64961
  19  102.981
  20  0.274838
  21  0.299858
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  3.877e+00  1.436e+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.337e+00  2.999e-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.769e-01  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333649/likelihoodResults_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.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) = 3647.22861792
delta logL = 0.0579550014627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3647.22538987
delta logL = 0.0611830451812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6125       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2574       1.0000          .0000       10.000    
     3 'Normalizat'    .64997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3558       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=   3647.225     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      284 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5880        14.638        .10629E-02   -.11353E-03
   2  Index         3.2528        2.4476        .12250E-01   -.16388E-04
   3  Normalizat    .65143        .27202        .28768E-03    .67715E-04
   4  Prefactor     1.3554        .30399        .24022E-03    .77123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58796
  Index      = 3.25277
  Normalizat = 0.651433
  Prefactor  = 1.35536
 **********
 **   18 **HESSE 
 **********

 FCN=   3647.225     FROM HESSE     STATUS=OK            27 CALLS      311 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5880        10.972        .42516E-04   -1.5329    
   2  Index         3.2528        1.8905        .49002E-03   -.35698    
   3  Normalizat    .65143        .27304        .11507E-04   -1.0584    
   4  Prefactor     1.3554        .30396        .48044E-04   -.81676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5075e-11
Minuit parameter uncertainties:
  1  10.9782
  2  1.946
  3  0.273613
  4  0.304366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333649': 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) = 3647.22535082
delta logL = 0.0612220971625

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  3.588e+00  1.098e+01  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  3.253e+00  1.946e+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:  1.355e+00  3.044e-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.514e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/333649/cmap_HighResolution_513043201_513302401_4FGL_J0104.8-2416_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-08-13 11:59:36.696741', job_id='333649', GAL2='1.36', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1628881176.7', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='6.12e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1056' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:59:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 333649: <4FGL_J0104.8-2416_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1056> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:45:40 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:46:59 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:46:59 2021
Terminated at Fri Aug 13 11:59:38 2021
Results reported at Fri Aug 13 11:59:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1056 16.2146 -24.2808 513043201 513302401 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 :                                   669.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             226.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            838 sec.

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

