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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin804
RA = 16.2146, Dec = -24.2808
tmin = 447724801, tmax = 447984001
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='332269', job_status='RUN', time_executed='2021-08-13 11:44:12.849672', time_epoch_executed='1628880252.85' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332269/ft1_4FGL_J0104.8-2416_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332269/ft1_4FGL_J0104.8-2416_daily_bin804.fits outfile=/scratch/kocevski/332269/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin804.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=447724801.0 tmax=447984001.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 6.19
user 3.21
sys 2.95

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/332269/ltcube_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.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/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits
.....................!
real 19.54
user 15.70
sys 3.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/332269/ltcube_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.fits outfile=/scratch/kocevski/332269/expmap_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.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/332269/ltcube_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.fits
.....................!
real 197.34
user 187.66
sys 8.67

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/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits scfile=/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits outfile=/scratch/kocevski/332269/cmap_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.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 3.57
user 0.37
sys 3.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits scfile=/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits outfile=/scratch/kocevski/332269/cmap_HighResolution_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.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 3.54
user 0.38
sys 3.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/332269/ft2_4FGL_J0104.8-2416_daily_bin804.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332269/Model_4FGL_J0104.8-2416_daily_bin804.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/332269/ft1_filtered_4FGL_J0104.8-2416_daily_bin804.fits....................!
real 49.63
user 44.31
sys 5.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.2921       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.430       1.0000         .10000E-03   10000.    
     6 'norm      '    5.9322       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8114       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7873       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15849E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4424       1.0000         .10000E-03   10000.    
    13 'norm      '    .80216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1738       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3650       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3475       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88564       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72104       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=   5265.823     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1895 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6893       -.74745E-07** at limit **
   2  Prefactor     .10000E-03    8.0010       -.90179E-07** at limit **
   3  norm          7.2922        7.3117        .47986E-06    .61108E-04
   4  norm          .10000E-03    1.8250        .56354E-07** at limit **
   5  Prefactor     27.408        40.662       -.16902E-04    .81935E-07
   6  norm          5.9328        6.0042       -.26807E-06    .14292E-03
   7  norm          5.8114        3.1650       -.12206E-05   -.25528E-04
   8  Prefactor     .10000E-03    2.6262        .12426E-07** at limit **
   9  Prefactor     3.7873        4.6666        .28797E-05    .10218E-04
  10  Prefactor     .10000E-03    2.2274       -.10279E-07** at limit **
  11  Prefactor     .10002E-03    7.2156       -.36256E-07** at limit **
  12  norm          5.4467        2.7411       -.43754E-07    .54729E-05
  13  norm          .80215        .73712        .19341E-07    .29154E-03
  14  Prefactor     .10000E-03    2.6510       -.76423E-07** at limit **
  15  Prefactor     5.1746        4.2175       -.35021E-08   -.22840E-03
  16  norm          4.3652        1.6476       -.53609E-07   -.80868E-04
  17  norm          5.3476        2.3752       -.92049E-07   -.13164E-03
  18  norm          2.7921        2.2026       -.63875E-07   -.16299E-03
  19  Prefactor     .10000E-03    56.965        .31509E-06** at limit **
  20  Normalizat    .88555        .14836        .67342E-06   -.28510E-04
  21  Prefactor     .72117        .17164        .25176E-06    .12791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.29219
  norm       = 0.0001
  Prefactor  = 27.408
  norm       = 5.93278
  norm       = 5.81135
  Prefactor  = 0.0001
  Prefactor  = 3.78733
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 5.44669
  norm       = 0.802149
  Prefactor  = 0.0001
  Prefactor  = 5.17457
  norm       = 4.36517
  norm       = 5.34756
  norm       = 2.79212
  Prefactor  = 0.0001
  Normalizat = 0.885554
  Prefactor  = 0.721167
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.823     FROM HESSE     STATUS=OK           333 CALLS     2228 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7475        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.0135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2922        7.3178        .14853E-03   -1.5168    
   4  norm          .10000E-03    1.8411        .95712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.408        40.666        .76492E-04   -1.4660    
   6  norm          5.9328        6.0057        .16487E-03   -1.5221    
   7  norm          5.8114        3.1664        .92025E-04   -1.5226    
   8  Prefactor     .10000E-03    2.6698        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7873        4.6641        .16953E-03   -1.5319    
  10  Prefactor     .10000E-03    2.2760        .10572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    18.766        .52135E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4467        2.9317        .70271E-04   -1.5241    
  13  norm          .80215        .79878        .58305E-03   -1.5529    
  14  Prefactor     .10000E-03    2.6520        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1746        4.2006        .12303E-03   -1.5253    
  16  norm          4.3652        1.6484        .54882E-04   -1.5290    
  17  norm          5.3476        2.3730        .70479E-04   -1.5245    
  18  norm          2.7921        2.1973        .92104E-04   -1.5374    
  19  Prefactor     .10000E-03    57.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88555        .17603        .20155E-03   -.96970    
  21  Prefactor     .72117        .20317        .25946E-03   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64618e-11
Minuit parameter uncertainties:
  1  4.78515e-06
  2  2.2291e-06
  3  7.31866
  4  1.32337e-06
  5  40.7073
  6  6.00629
  7  3.1665
  8  7.19232e-06
  9  4.66456
  10  1.08795e-06
  11  0.00121097
  12  2.93174
  13  0.798792
  14  9.55024e-07
  15  4.20088
  16  1.6484
  17  2.37307
  18  2.1974
  19  2.26405e-05
  20  0.176146
  21  0.203379
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  7.192e-06  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:  7.212e-01  2.034e-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.856e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332269/likelihoodResults_447724801_447984001_4FGL_J0104.8-2416_daily_bin804.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) = 5265.82487653
delta logL = -0.00178402870733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5265.82309252
delta logL = -1.48465915117e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5265.823     FROM MIGRAD    STATUS=FAILED        85 CALLS      232 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    158.57        .11505E-02** at limit **
   2  Index         2.5174        5.5452        .50000        .17122E-04
   3  Normalizat    .88555        .29420E-01    .20154E-03   -.54828E-04
   4  Prefactor     .72117        .34679E-01    .25946E-03   -.16125E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5265.823     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      375 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    158.57        .32804E-03** at limit **
   2  Index         2.5174        5.5452        .76385E-04    .17122E-04
   3  Normalizat    .88555        .29420E-01    .19494E-05   -.54828E-04
   4  Prefactor     .72117        .34679E-01    .14747E-05   -.16125E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5265.823     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      416 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    662.78        .23010E-03** at limit **
   2  Index         2.3470        5.7176        .50000        .76898E-07
   3  Normalizat    .88555        .14568        .80618E-05    .18615E-03
   4  Prefactor     .72117        .17159        .10378E-04    .16125E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34705
  Normalizat = 0.885555
  Prefactor  = 0.721166
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.823     FROM HESSE     STATUS=OK            29 CALLS      445 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9002        .46020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3470        6.1466        .50000       -.55930    
   3  Normalizat    .88555        .17213        .16124E-05   -.96970    
   4  Prefactor     .72117        .20282        .20757E-05   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01371e-11
Minuit parameter uncertainties:
  1  3.70384e-06
  2  110.181
  3  0.172232
  4  0.203033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332269': 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) = 5265.82309181
delta logL = 6.93225047144e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.212e-01  2.030e-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.856e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.215 -24.281

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-03', job_status='DONE', photon_flux_upper_limit='4.96e-08', time_completed='2021-08-13 11:54:32.196376', job_id='332269', GAL2='0.72', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1628880872.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='6.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='804' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:54:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 332269: <4FGL_J0104.8-2416_daily_bin804> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin804> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:41:00 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:43: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:43:11 2021
Terminated at Fri Aug 13 11:54:33 2021
Results reported at Fri Aug 13 11:54:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin804 16.2146 -24.2808 447724801 447984001 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 :                                   660.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            813 sec.

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

