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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1452
RA = 16.2146, Dec = -24.2808
tmin = 615686401, tmax = 615945601
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='335290', job_status='RUN', time_executed='2021-08-13 11:53:57.136345', time_epoch_executed='1628880837.14' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335290/ft1_4FGL_J0104.8-2416_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335290/ft1_4FGL_J0104.8-2416_daily_bin1452.fits outfile=/scratch/kocevski/335290/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1452.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=615686401.0 tmax=615945601.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 7.05
user 3.20
sys 3.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/335290/ltcube_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.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/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits
.....................!
real 17.38
user 12.95
sys 4.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/335290/ltcube_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.fits outfile=/scratch/kocevski/335290/expmap_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.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/335290/ltcube_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.fits
.....................!
real 195.50
user 185.45
sys 9.62

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/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits scfile=/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits outfile=/scratch/kocevski/335290/cmap_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.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.10
user 0.38
sys 3.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits scfile=/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits outfile=/scratch/kocevski/335290/cmap_HighResolution_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.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.08
user 0.41
sys 3.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/335290/ft2_4FGL_J0104.8-2416_daily_bin1452.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335290/Model_4FGL_J0104.8-2416_daily_bin1452.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/335290/ft1_filtered_4FGL_J0104.8-2416_daily_bin1452.fits.....................!
real 53.99
user 47.90
sys 5.84

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0685       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1992       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2697       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.205       1.0000         .10000E-03   10000.    
     6 'norm      '    27.526       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.040       1.0000         .10000E-03   10000.    
    12 'norm      '    .10604E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7655       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .53706       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25112       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .68837       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97187       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=   5883.154     FROM MIGRAD    STATUS=CONVERGED    447 CALLS     2254 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0687        5.6543        .65725E-06   -.36021E-04
   2  Prefactor     .10000E-03    10.117        .12239E-07** at limit **
   3  norm          3.1994        5.3834        .16721E-06   -.10953E-04
   4  norm          1.2700        4.4683        .13279E-05   -.94317E-04
   5  Prefactor     38.174        78.787       -.72940E-05   -.13545E-03
   6  norm          27.527        14.049        .34301E-06   -.65903E-04
   7  norm          .10000E-03    .96824        .41036E-07** at limit **
   8  Prefactor     1.5848        5.4063        .99293E-06   -.23178E-03
   9  Prefactor     2.7396        8.8288       -.21412E-06   -.16462E-03
  10  Prefactor     .10000E-03    1.2814        .44282E-07** at limit **
  11  Prefactor     16.024        8.7234       -.44317E-06   -.74998E-03
  12  norm          .10000E-03    1.3596        .61968E-06** at limit **
  13  norm          1.7657        1.8947       -.47453E-07   -.58580E-03
  14  Prefactor     .52028        9.0362        .20462E-05   -.54677E-03
  15  Prefactor     .10000E-03    3.2392        .10616E-06** at limit **
  16  norm          .10000E-03    .58252        .13755E-06** at limit **
  17  norm          .25102        1.0040        .36329E-06   -.67493E-03
  18  norm          4.1316        2.4882        .16438E-07   -.28608E-03
  19  Prefactor     .10000E-03    20.880       -.10944E-06** at limit **
  20  Normalizat    .68843        .13340       -.40146E-06   -.50753E-03
  21  Prefactor     .97174        .15414       -.52388E-06   -.38594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06867
  Prefactor  = 0.0001
  norm       = 3.19941
  norm       = 1.27004
  Prefactor  = 38.1737
  norm       = 27.5273
  norm       = 0.0001
  Prefactor  = 1.58483
  Prefactor  = 2.73964
  Prefactor  = 0.0001
  Prefactor  = 16.024
  norm       = 0.0001
  norm       = 1.76568
  Prefactor  = 0.520283
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.251017
  norm       = 4.1316
  Prefactor  = 0.0001
  Normalizat = 0.688433
  Prefactor  = 0.971741
 **********
 **   18 **HESSE 
 **********

 FCN=   5883.154     FROM HESSE     STATUS=OK           321 CALLS     2575 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0687        5.6248        .28725E-03   -1.5420    
   2  Prefactor     .10000E-03    10.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1994        5.3695        .22521E-03   -1.5350    
   4  norm          1.2700        4.5242        .29074E-03   -1.5483    
   5  Prefactor     38.174        81.660        .64844E-04   -1.4471    
   6  norm          27.527        14.083        .76359E-04   -1.4658    
   7  norm          .10000E-03    .97873        .73702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5848        5.3980        .29646E-03   -1.5456    
   9  Prefactor     2.7396        8.6351        .24589E-03   -1.5377    
  10  Prefactor     .10000E-03    1.2938        .84791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.024        8.2245        .10000E-03   -1.4907    
  12  norm          .10000E-03    1.9077        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7657        1.8630        .10143E-03   -1.5442    
  14  Prefactor     .52028        27.474        .39280E-02   -1.5564    
  15  Prefactor     .10000E-03    3.3415        .26821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5745        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25102        1.6000        .14154E-02   -1.5608    
  18  norm          4.1316        2.4753        .88747E-04   -1.5301    
  19  Prefactor     .10000E-03    20.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .68843        .15655        .21312E-03   -1.0435    
  21  Prefactor     .97174        .18154        .21984E-03   -.93677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72616e-09
Minuit parameter uncertainties:
  1  5.62621
  2  3.44613e-06
  3  5.37029
  4  4.52543
  5  81.9004
  6  14.0845
  7  8.34888e-07
  8  5.3997
  9  8.63901
  10  1.0036e-06
  11  8.2251
  12  1.13949e-05
  13  1.86304
  14  7.56454
  15  1.04572e-05
  16  1.16715e-05
  17  1.2673
  18  2.4754
  19  1.81423e-05
  20  0.156647
  21  0.181649
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.585e+00  5.400e+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:  9.717e-01  1.816e-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.884e-01  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/335290/likelihoodResults_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.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) = 5882.61018943
delta logL = 0.543333669078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5882.51815013
delta logL = 0.635372971118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82428       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3523       1.0000          .0000       10.000    
     3 'Normalizat'    .64390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0041       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=   5882.518     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      250 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82460        33.974        .62791E-03    .40901E-02
   2  Index         4.3523        7.0175        .77396E-02    .31390E-03
   3  Normalizat    .64414        .12304        .21953E-03    .43136E-03
   4  Prefactor     1.0039        .14850        .21656E-03    .35419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.824605
  Index      = 4.35232
  Normalizat = 0.644136
  Prefactor  = 1.0039
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.518     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82460        2.2884        .25116E-04   -1.5526    
   2  Index         4.3523        1.8798        .30958E-03   -.12990    
   3  Normalizat    .64414        .15520        .43906E-04   -1.0614    
   4  Prefactor     1.0039        .18372        .43312E-04   -.92600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52898e-09
Minuit parameter uncertainties:
  1  2.28859
  2  1.92798
  3  0.155301
  4  0.18383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335290': 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) = 5882.51814849
delta logL = 0.635374605308

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  8.246e-01  2.289e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  4.352e+00  1.928e+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.004e+00  1.838e-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.441e-01  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 4.35 +/- 1.93
Photon Flux (Free Index): 4.33e-08 +/- 4.15e-08
Energy Flux (Free Index): 6.15e-06 +/- 5.90e-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/335290/cmap_HighResolution_615686401_615945601_4FGL_J0104.8-2416_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', comment='SUCCESS', energy_flux2='6.15e-06', dlogl='6.35e-01', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-08-13 12:04:56.082918', photon_index_error2='1.93', photon_index2='4.35', ts='0.10', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.27e-08', energy_flux_error2='5.90e-06', EG='0.69', time_epoch_completed='1628881496.08', return_code='0', job_id='335290', GAL2='1.00', EG2='0.64', return_code2='0', photon_flux_error2='4.15e-08', ts2='1.46', photon_index='2.59' WHERE bin_id='1452' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 335290: <4FGL_J0104.8-2416_daily_bin1452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1452 16.2146 -24.2808 615686401 615945601 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 :                                   708.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            846 sec.

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

