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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1043
RA = 16.2146, Dec = -24.2808
tmin = 509673601, tmax = 509932801
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='333630', job_status='RUN', time_executed='2021-08-13 11:51:02.683021', time_epoch_executed='1628880662.68' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333630

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333630/ft1_4FGL_J0104.8-2416_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333630/ft1_4FGL_J0104.8-2416_daily_bin1043.fits outfile=/scratch/kocevski/333630/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1043.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=509673601.0 tmax=509932801.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 3.06
user 2.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.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/333630/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1043.fits evtable="EVENTS" outfile="/scratch/kocevski/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.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.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/333630/ltcube_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.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/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits
.....................!
real 11.53
user 11.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/333630/ltcube_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.fits outfile=/scratch/kocevski/333630/expmap_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.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/333630/ltcube_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.fits
.....................!
real 157.58
user 153.08
sys 3.92

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/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.fits scfile=/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits outfile=/scratch/kocevski/333630/cmap_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.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.47
user 0.31
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/333630/ft2_4FGL_J0104.8-2416_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333630/Model_4FGL_J0104.8-2416_daily_bin1043.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/333630/ft1_filtered_4FGL_J0104.8-2416_daily_bin1043.fits.....................!
real 35.68
user 34.29
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.533       1.0000         .10000E-03   10000.    
     4 'norm      '    24.774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5067       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37498E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4850       1.0000         .10000E-03   10000.    
    12 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2123       1.0000         .10000E-03   10000.    
    16 'norm      '    .16014E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3567       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70342       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4469.848     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1943 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.688         .0000    ** at limit **
   2  Prefactor     .10000E-03    8.1589         .0000    ** at limit **
   3  norm          12.536        16.088         .0000        .10107E-02
   4  norm          24.776        10.315         .0000        .28160E-03
   5  Prefactor     .10003E-03    119.38         .0000    ** at limit **
   6  norm          1.5021        25.142         .0000        .51870E-02
   7  norm          .10000E-03    3.2940         .0000    ** at limit **
   8  Prefactor     .10005E-03    4.9506         .0000    ** at limit **
   9  Prefactor     .10000E-03    6.8269         .0000    ** at limit **
  10  Prefactor     10.159        6.6631         .0000        .19464E-03
  11  Prefactor     8.4830        7.7779         .0000        .35016E-03
  12  norm          .10000E-03    1.4107         .0000    ** at limit **
  13  norm          .33654        2.6196         .0000        .13434E-02
  14  Prefactor     .10000E-03    7.0288         .0000    ** at limit **
  15  Prefactor     3.2123        3.4467         .0000        .10927E-03
  16  norm          .19826E-01    .58099         .0000        .33060E-03
  17  norm          .10000E-03    .95686         .0000    ** at limit **
  18  norm          .10000E-03    1.5811         .0000    ** at limit **
  19  Prefactor     .10000E-03    18.143         .0000    ** at limit **
  20  Normalizat    1.3567        .19717         .0000       -.13763E-03
  21  Prefactor     .70320        .21949         .0000       -.95354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5359
  norm       = 24.7757
  Prefactor  = 0.000100034
  norm       = 1.50211
  norm       = 0.0001
  Prefactor  = 0.000100051
  Prefactor  = 0.000100001
  Prefactor  = 10.1587
  Prefactor  = 8.48303
  norm       = 0.0001
  norm       = 0.336539
  Prefactor  = 0.0001
  Prefactor  = 3.21229
  norm       = 0.0198262
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.3567
  Prefactor  = 0.7032
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.848     FROM HESSE     STATUS=OK           319 CALLS     2262 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.536        16.098        .11315E-03   -1.5000    
   4  norm          24.776        10.330        .80480E-04   -1.4712    
   5  Prefactor     .10003E-03    119.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5021        25.409        .17431E-02   -1.5463    
   7  norm          .10000E-03    3.3624        .11843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    27.634        .28369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8442        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.159        6.6656        .12572E-03   -1.5070    
  11  Prefactor     8.4830        7.6665        .13762E-03   -1.5125    
  12  norm          .10000E-03    1.4386        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .33654        2.6588        .20707E-03   -1.5592    
  14  Prefactor     .10000E-03    7.0414        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2123        3.4327        .12351E-03   -1.5349    
  16  norm          .19826E-01    6.3218        .98637E-03   -1.5680    
  17  norm          .10000E-03    1.5272        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6088        .82049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3567        .23374        .20790E-03   -.81889    
  21  Prefactor     .70320        .26087        .30900E-03   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00708e-09
Minuit parameter uncertainties:
  1  5.14451e-05
  2  5.10336e-05
  3  16.1037
  4  10.3306
  5  0.00403616
  6  12.3616
  7  1.44127e-05
  8  0.00238676
  9  0.000179981
  10  6.66607
  11  7.66737
  12  1.10295e-05
  13  1.8917
  14  1.01558e-05
  15  3.43292
  16  0.706349
  17  5.61035e-06
  18  2.63813e-05
  19  0.000203011
  20  0.23392
  21  0.261329
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.001e-04  2.387e-03  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.032e-01  2.613e-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:  1.357e+00  2.339e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333630/likelihoodResults_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.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) = 4469.84771094
delta logL = -0.000171622398739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4469.84754422
delta logL = -4.89959256811e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12975E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5277       1.0000          .0000       10.000    
     3 'Normalizat'    1.3560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70390       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=   4469.848     FROM MIGRAD    STATUS=FAILED       105 CALLS      283 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10357E-03    344.65        .34832E-02** at limit **
   2  Index         2.3763        7.0255        .50000        .41032E-05
   3  Normalizat    1.3567        .14246E-01    .20790E-03   -.40465E-05
   4  Prefactor     .70320        .15841E-01    .30900E-03    .21707E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4469.848     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      416 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10357E-03    344.65        .94758E-03** at limit **
   2  Index         2.3763        7.0255        .14345E-03    .41032E-05
   3  Normalizat    1.3567        .14246E-01    .66347E-06   -.40465E-05
   4  Prefactor     .70320        .15841E-01    .92337E-06    .21707E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4469.848     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      461 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1789.2        .69663E-03** at limit **
   2  Index         2.3251        8.4976        .50000       -.43610E-07
   3  Normalizat    1.3567        .34094E-01    .83161E-05   -.16952E-04
   4  Prefactor     .70320        .37911E-01    .12360E-04   -.80943E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32509
  Normalizat = 1.3567
  Prefactor  = 0.703201
 **********
 **   18 **HESSE 
 **********

 FCN=   4469.848     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      490 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7763.8        .13933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3251        8.8357        .50000       -.56449    
   3  Normalizat    1.3567        .84052E-01    .16632E-05   -.81889    
   4  Prefactor     .70320        .93452E-01    .24720E-05   -1.0340    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41124e-09
Minuit parameter uncertainties:
  1  0.00184123
  2  1557.13
  3  0.0840606
  4  0.0934731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333630': 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) = 4469.84753869
delta logL = 6.24324457021e-07

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  1.841e-03  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.325e+00  1.557e+03  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.032e-01  9.347e-02  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:  1.357e+00  8.406e-02  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/333630/cmap_HighResolution_509673601_509932801_4FGL_J0104.8-2416_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-13 11:58:27.952767', job_id='333630', GAL2='0.70', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1628881107.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1043' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 11:58:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 333630: <4FGL_J0104.8-2416_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1043 16.2146 -24.2808 509673601 509932801 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 :                                   442.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            769 sec.

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

