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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1093
RA = 16.2146, Dec = -24.2808
tmin = 522633601, tmax = 522892801
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='333703', job_status='RUN', time_executed='2021-08-13 11:48:08.138205', time_epoch_executed='1628880488.14' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333703/ft1_4FGL_J0104.8-2416_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333703/ft1_4FGL_J0104.8-2416_daily_bin1093.fits outfile=/scratch/kocevski/333703/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1093.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=522633601.0 tmax=522892801.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 2.97
user 2.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.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/333703/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.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 0.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/333703/ltcube_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.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/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits
.....................!
real 10.90
user 10.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/333703/ltcube_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.fits outfile=/scratch/kocevski/333703/expmap_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.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/333703/ltcube_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.fits
.....................!
real 157.63
user 152.96
sys 4.27

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/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits outfile=/scratch/kocevski/333703/cmap_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.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 0.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits outfile=/scratch/kocevski/333703/cmap_HighResolution_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.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 0.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/333703/ft2_4FGL_J0104.8-2416_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333703/Model_4FGL_J0104.8-2416_daily_bin1093.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/333703/ft1_filtered_4FGL_J0104.8-2416_daily_bin1093.fits.....................!
real 32.28
user 31.11
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68859E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    48.150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.351       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0799       1.0000         .10000E-03   10000.    
    13 'norm      '    .29566       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60533       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2039       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3318       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.178       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83636       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1367       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=   4259.409     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2229 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9109        16.559       -.29544E-05   -.25688E-04
   2  Prefactor     .10000E-03    15.337        .50148E-08** at limit **
   3  norm          .10000E-03    7.3579        .16331E-05** at limit **
   4  norm          48.149        13.006        .13680E-05    .52804E-04
   5  Prefactor     25.311        201.79       -.70802E-04    .33020E-05
   6  norm          .10000E-03    13.882        .10077E-05** at limit **
   7  norm          .10000E-03    3.4241        .16096E-07** at limit **
   8  Prefactor     5.7153        7.7926        .11430E-05    .18797E-04
   9  Prefactor     .10000E-03    13.414       -.15436E-05** at limit **
  10  Prefactor     5.6399        8.1054       -.85755E-06   -.16632E-03
  11  Prefactor     .10000E-03    6.9090       -.50514E-06** at limit **
  12  norm          4.0787        2.7548        .33747E-06    .47046E-03
  13  norm          .29492        2.7574       -.15706E-05   -.94293E-04
  14  Prefactor     .10000E-03    13.264        .12090E-05** at limit **
  15  Prefactor     .60471        5.2370       -.11496E-05   -.34868E-03
  16  norm          4.2039        1.6377       -.61125E-07    .19494E-03
  17  norm          1.3316        1.6758        .34033E-07    .84023E-04
  18  norm          .10000E-03    1.0459       -.23139E-06** at limit **
  19  Prefactor     46.177        43.303       -.17052E-05    .68253E-05
  20  Normalizat    .83641        .21169        .32037E-05    .13745E-03
  21  Prefactor     1.1367        .23002       -.85130E-06    .22599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.91092
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 48.1492
  Prefactor  = 25.3115
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.71528
  Prefactor  = 0.0001
  Prefactor  = 5.63992
  Prefactor  = 0.0001
  norm       = 4.07867
  norm       = 0.294921
  Prefactor  = 0.0001
  Prefactor  = 0.60471
  norm       = 4.20386
  norm       = 1.33164
  norm       = 0.0001
  Prefactor  = 46.1774
  Normalizat = 0.83641
  Prefactor  = 1.13669
 **********
 **   18 **HESSE 
 **********

 FCN=   4259.409     FROM HESSE     STATUS=OK           327 CALLS     2556 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9109        16.585        .12728E-03   -1.5078    
   2  Prefactor     .10000E-03    22.273        .95277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.3783        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          48.149        12.994        .57787E-04   -1.4319    
   5  Prefactor     25.311        203.09        .79561E-04   -1.4701    
   6  norm          .10000E-03    13.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5154        .23570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7153        7.7726        .16796E-03   -1.5230    
   9  Prefactor     .10000E-03    13.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6399        8.1378        .16916E-03   -1.5233    
  11  Prefactor     .10000E-03    6.9290        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0787        2.7314        .80962E-04   -1.5304    
  13  norm          .29492        5.9566        .20543E-02   -1.5599    
  14  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60471        10.046        .26031E-02   -1.5552    
  16  norm          4.2039        1.6372        .50425E-04   -1.5298    
  17  norm          1.3316        1.6469        .90713E-04   -1.5477    
  18  norm          .10000E-03    1.0503        .65172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.177        43.299        .29501E-03   -1.4348    
  20  Normalizat    .83641        .24985        .25622E-03   -.98732    
  21  Prefactor     1.1367        .27377        .25818E-03   -.88303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19936e-08
Minuit parameter uncertainties:
  1  16.5923
  2  0.000392232
  3  1.77992e-07
  4  12.9946
  5  144.071
  6  0.000184498
  7  1.08694e-05
  8  7.77401
  9  2.10353e-06
  10  8.13936
  11  5.87518e-06
  12  2.73144
  13  2.6507
  14  2.55417e-05
  15  4.92997
  16  1.63722
  17  1.64695
  18  1.3264e-06
  19  43.3286
  20  0.250193
  21  0.274113
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  5.715e+00  7.774e+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.137e+00  2.741e-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:  8.364e-01  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/333703/likelihoodResults_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.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) = 4259.18165454
delta logL = 0.227798678196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4259.16089856
delta logL = 0.248554658499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3025       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9992       1.0000          .0000       10.000    
     3 'Normalizat'    .85356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1188       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=   4259.161     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3025        10.774        .37107E-02    .33949E-02
   2  Index         1.9993        .71371        .25464       -.20130E-04
   3  Normalizat    .85368        .19759        .44305E-01    .10995E-04
   4  Prefactor     1.1187        .22995        .58753E-01    .46470E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.30246
  Index      = 1.99931
  Normalizat = 0.853685
  Prefactor  = 1.11868
 **********
 **   18 **HESSE 
 **********

 FCN=   4259.161     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3025        8.5581        .14843E-03   -1.5167    
   2  Index         1.9993        .71610        .88990E-02   -.64367    
   3  Normalizat    .85368        .23444        .25382E-03   -.98107    
   4  Prefactor     1.1187        .27220        .25982E-03   -.88872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09275e-08
Minuit parameter uncertainties:
  1  8.55955
  2  0.719981
  3  0.234721
  4  0.272543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333703': 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) = 4259.1608984
delta logL = 0.248554823285

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  7.302e+00  8.560e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  1.999e+00  7.200e-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.119e+00  2.725e-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:  8.537e-01  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 2.00 +/- 0.72
Photon Flux (Free Index): 2.26e-08 +/- 3.06e-08
Energy Flux (Free Index): 1.56e-05 +/- 2.45e-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/333703/cmap_HighResolution_522633601_522892801_4FGL_J0104.8-2416_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='2.49e-01', photon_flux2='2.26e-08', job_status='DONE', time_completed='2021-08-13 11:55:21.741269', photon_index_error2='0.72', photon_index2='2.00', ts='0.82', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.45e-05', EG='0.84', time_epoch_completed='1628880921.74', return_code='0', job_id='333703', GAL2='1.12', EG2='0.85', return_code2='0', photon_flux_error2='3.06e-08', ts2='1.32', photon_index='2.59' WHERE bin_id='1093' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:55:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 333703: <4FGL_J0104.8-2416_daily_bin1093> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1093> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:45:44 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:47:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:47:11 2021
Terminated at Fri Aug 13 11:55:22 2021
Results reported at Fri Aug 13 11:55:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1093 16.2146 -24.2808 522633601 522892801 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 :                                   429.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   490 sec.
    Turnaround time :                            578 sec.

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

