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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1156
RA = 16.2146, Dec = -24.2808
tmin = 538963201, tmax = 539222401
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='334869', job_status='RUN', time_executed='2021-08-13 11:52:40.544987', time_epoch_executed='1628880760.55' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334869/ft1_4FGL_J0104.8-2416_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334869/ft1_4FGL_J0104.8-2416_daily_bin1156.fits outfile=/scratch/kocevski/334869/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1156.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=538963201.0 tmax=539222401.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 8.58
user 4.37
sys 4.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/334869/ltcube_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.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/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits
.....................!
real 18.61
user 13.73
sys 4.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/334869/ltcube_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.fits outfile=/scratch/kocevski/334869/expmap_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.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/334869/ltcube_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.fits
.....................!
real 196.59
user 185.81
sys 10.39

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/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits scfile=/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits outfile=/scratch/kocevski/334869/cmap_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.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.50
user 0.43
sys 4.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits scfile=/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits outfile=/scratch/kocevski/334869/cmap_HighResolution_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.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.51
user 0.43
sys 4.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/334869/ft2_4FGL_J0104.8-2416_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334869/Model_4FGL_J0104.8-2416_daily_bin1156.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/334869/ft1_filtered_4FGL_J0104.8-2416_daily_bin1156.fits.....................!
real 53.88
user 47.41
sys 6.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4047       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7898       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.366       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.586       1.0000         .10000E-03   10000.    
    12 'norm      '    .10400E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68267       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1761       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70550       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0504       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=   5917.180     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1901 TOTAL
                     EDM=   .39E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9644        .16980E-06** at limit **
   2  Prefactor     6.4023        13.377        .40124E-05    .40506E-06
   3  norm          6.7904        8.3008       -.54683E-07   -.52138E-05
   4  norm          .10000E-03    3.2129        .11301E-06** at limit **
   5  Prefactor     .10000E-03    95.741       -.38982E-05** at limit **
   6  norm          12.366        10.417        .22999E-06    .57202E-05
   7  norm          .10000E-03    1.2741        .62936E-07** at limit **
   8  Prefactor     2.6916        .78056       -.41164E-07   -.34941E-03
   9  Prefactor     .10000E-03    6.3856       -.93174E-07** at limit **
  10  Prefactor     .10000E-03    .77557        .14682E-06** at limit **
  11  Prefactor     10.584        8.1105       -.11467E-06   -.43866E-04
  12  norm          .10000E-03    1.0445        .48489E-07** at limit **
  13  norm          4.4422        2.3182        .31002E-06   -.11982E-04
  14  Prefactor     .10000E-03    7.0444       -.12740E-06** at limit **
  15  Prefactor     .68451        2.5895        .34915E-06   -.21581E-04
  16  norm          5.1762        1.5525        .24274E-07   -.41841E-04
  17  norm          .10000E-03    .60462        .21479E-07** at limit **
  18  norm          .10000E-03    .70276        .71039E-07** at limit **
  19  Prefactor     .10000E-03    15.253       -.24021E-07** at limit **
  20  Normalizat    .70545        .13536       -.16497E-06   -.51132E-04
  21  Prefactor     1.0504        .16444       -.39794E-06   -.25709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.40225
  norm       = 6.79039
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3662
  norm       = 0.0001
  Prefactor  = 2.69156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5837
  norm       = 0.0001
  norm       = 4.44218
  Prefactor  = 0.0001
  Prefactor  = 0.684515
  norm       = 5.17624
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.705448
  Prefactor  = 1.05036
 **********
 **   18 **HESSE 
 **********

 FCN=   5917.180     FROM HESSE     STATUS=OK           319 CALLS     2220 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4023        13.367        .15859E-03   -1.5202    
   3  norm          6.7904        8.3010        .15398E-03   -1.5187    
   4  norm          .10000E-03    3.2856        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    95.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.366        10.425        .11391E-03   -1.5005    
   7  norm          .10000E-03    1.3060        .16954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6916        6.2248        .12417E-02   -1.5380    
   9  Prefactor     .10000E-03    6.4286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .77697        .66164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.584        8.0280        .12314E-03   -1.5057    
  12  norm          .10000E-03    1.0736        .15193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4422        2.3159        .81696E-04   -1.5286    
  14  Prefactor     .10000E-03    7.1186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68451        2.5495        .22585E-03   -1.5543    
  16  norm          5.1762        1.5548        .50440E-04   -1.5253    
  17  norm          .10000E-03    .62862        .11670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1094        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .70545        .16023        .22132E-03   -1.0368    
  21  Prefactor     1.0504        .19142        .22528E-03   -.91069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44302e-10
Minuit parameter uncertainties:
  1  3.36104e-06
  2  13.3731
  3  8.30243
  4  3.07272e-06
  5  1.81735e-05
  6  10.427
  7  1.06707e-06
  8  6.22626
  9  2.52703e-06
  10  1.90458e-07
  11  8.02885
  12  5.46132e-07
  13  2.31593
  14  1.14498e-05
  15  2.54988
  16  1.55483
  17  1.52427e-07
  18  2.25085e-06
  19  1.05427e-06
  20  0.160335
  21  0.191546
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.692e+00  6.226e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
228        Scale:  5.562e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.050e+00  1.915e-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.054e-01  1.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/334869/likelihoodResults_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.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) = 5916.19410397
delta logL = 0.986261764706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5916.18558772
delta logL = 0.994778012163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18029       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7343       1.0000          .0000       10.000    
     3 'Normalizat'    .61991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5916.186     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      265 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18031        1.6554        .48692E-02    .26884E-02
   2  Index         5.7343        3.0163        .15127       -.21356E-04
   3  Normalizat    .61997        .32774E-01    .41211E-01    .13171E-04
   4  Prefactor     1.1206        .40203E-01    .36849E-01    .73305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180309
  Index      = 5.73432
  Normalizat = 0.619965
  Prefactor  = 1.12063
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.186     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      296 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18031        4.0797        .21924E-04   -1.5623    
   2  Index         5.7343        7.6088        .55871E-02    .14740    
   3  Normalizat    .61997        .14158        .23468E-03   -1.0714    
   4  Prefactor     1.1206        .16826        .21890E-03   -.88810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.98928e-08
Minuit parameter uncertainties:
  1  1.71501
  2  6.22964
  3  0.14166
  4  0.168338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334869': 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): 102
logL (Free Index) = 5916.18558759
delta logL = 0.994778142138

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.803e-01  1.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  5.734e+00  6.230e+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.121e+00  1.683e-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.200e-01  1.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 5.73 +/- 6.23
Photon Flux (Free Index): 7.21e-08 +/- 5.13e-08
Energy Flux (Free Index): 9.11e-06 +/- 7.68e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/334869/cmap_HighResolution_538963201_539222401_4FGL_J0104.8-2416_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', energy_flux2='9.11e-06', dlogl='9.95e-01', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-08-13 12:03:39.250986', photon_index_error2='6.23', photon_index2='5.73', ts='0.22', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='7.68e-06', EG='0.71', time_epoch_completed='1628881419.25', return_code='0', job_id='334869', GAL2='1.12', EG2='0.62', return_code2='102', photon_flux_error2='5.13e-08', ts2='2.52', photon_index='2.59' WHERE bin_id='1156' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 334869: <4FGL_J0104.8-2416_daily_bin1156> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1156> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:24 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:50:31 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:50:31 2021
Terminated at Fri Aug 13 12:03:40 2021
Results reported at Fri Aug 13 12:03:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1156 16.2146 -24.2808 538963201 539222401 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 :                                   712.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            796 sec.

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

