/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 55 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7527
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1246
RA = 16.2146, Dec = -24.2808
tmin = 562291201, tmax = 562550401
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='335000', job_status='RUN', time_executed='2021-08-13 11:54:21.488137', time_epoch_executed='1628880861.49' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335000

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335000/ft1_4FGL_J0104.8-2416_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335000/ft1_4FGL_J0104.8-2416_daily_bin1246.fits outfile=/scratch/kocevski/335000/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1246.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=562291201.0 tmax=562550401.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 12.16
user 3.37
sys 8.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.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/335000/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1246.fits evtable="EVENTS" outfile="/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.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 8.94
user 0.36
sys 8.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/335000/ltcube_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.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/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits
.....................!
real 24.27
user 13.77
sys 10.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/335000/ltcube_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits outfile=/scratch/kocevski/335000/expmap_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.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/335000/ltcube_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits
.....................!
real 203.01
user 186.52
sys 15.84

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/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits outfile=/scratch/kocevski/335000/cmap_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.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 8.72
user 0.38
sys 7.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits outfile=/scratch/kocevski/335000/cmap_HighResolution_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.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 8.96
user 0.39
sys 8.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335000/Model_4FGL_J0104.8-2416_daily_bin1246.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/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits.................!
real 25.81
user 14.29
sys 11.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits', '/scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits', expMap='/scratch/kocevski/335000/expmap_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits', expCube='/scratch/kocevski/335000/ltcube_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335000/Model_4FGL_J0104.8-2416_daily_bin1246.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/335000/ft1_filtered_4FGL_J0104.8-2416_daily_bin1246.fits
Spacecraft file(s): /scratch/kocevski/335000/ft2_4FGL_J0104.8-2416_daily_bin1246.fits
Exposure map: /scratch/kocevski/335000/expmap_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits
Exposure cube: /scratch/kocevski/335000/ltcube_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335000/Model_4FGL_J0104.8-2416_daily_bin1246.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 240.266655148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 236.832382839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91502E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    162.63       1.0000         .10000E-03   10000.    
     4 'norm      '    1108.1       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1603       1.0000         .10000E-03   10000.    
     6 'norm      '    .41750E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6133       1.0000         .10000E-03   10000.    
     8 'Prefactor '    158.96       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20765E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87804E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .22367E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57836E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42660E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7432       1.0000         .10000E-03   10000.    
    17 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    612.45       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95024       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   236.8302     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      469 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2187        1.0072         .0000         .0000    
   2  Prefactor     .10000E-03    .22423       -.34873E-04** at limit **
   3  norm          164.90        1.0068        .11743E-04    .29349E-02
   4  norm          1107.7        .99986       -.18110E-05    .78556E-02
   5  Prefactor     .88541E-03    .27399E-01   -.46827E-03** at limit **
   6  norm          .10309E-03    .21297        .62198E-03** at limit **
   7  norm          1.6133        1.0586         .0000         .0000    
   8  Prefactor     160.40        1.0045       -.59798E-05    .18859E-01
   9  Prefactor     .10428E-03    .20823       -.82930E-03** at limit **
  10  Prefactor     1.2175        1.1285         .0000         .0000    
  11  Prefactor     .10000E-03    .22339        .58550E-04** at limit **
  12  norm          .10000E-03    .20571       -.57554E-05** at limit **
  13  norm          .10000E-03    .20571       -.39793E-05** at limit **
  14  Prefactor     .10000E-03    .21661        .34691E-05** at limit **
  15  Prefactor     .10000E-03    .28179       -.12000E-03** at limit **
  16  norm          2.7442        1.0178        .12863E-05   -.55615E-04
  17  norm          .10000E-03    .20571       -.26553E-05** at limit **
  18  norm          .10000E-03    .20571        .35557E-06** at limit **
  19  Prefactor     612.70        1.0002        .15875E-05   -.37375E-02
  20  Normalizat    .10000E-01    .25505        .52466E-06** at limit **
  21  Prefactor     .95076        1.2928        .22898E-06    .13874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21868
  Prefactor  = 0.000100003
  norm       = 164.9
  norm       = 1107.71
  Prefactor  = 0.000885407
  norm       = 0.000103094
  norm       = 1.61331
  Prefactor  = 160.398
  Prefactor  = 0.000104279
  Prefactor  = 1.21749
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.7442
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 612.705
  Normalizat = 0.01
  Prefactor  = 0.950762
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   236.8302     FROM HESSE     STATUS=FAILED        11 CALLS      480 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     539.71        535.43         .0000       -1.5297    
   2  Prefactor     .10000E-03    .22423       -.34873E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          164.90        1.0068        .11743E-04   -1.3133    
   4  norm          1107.7        .99986       -.18110E-05   -.89221    
   5  Prefactor     .88541E-03    .27399E-01   -.46827E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10309E-03    .21297        .62198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6133        1.0586         .0000       -1.5454    
   8  Prefactor     160.40        1.0045       -.59798E-05   -1.3168    
   9  Prefactor     .10428E-03    .20823       -.82930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2175        1.1285         .0000       -1.5487    
  11  Prefactor     .10000E-03    .22339        .58550E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .20571       -.57554E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571       -.39793E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .21661        .34691E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .28179       -.12000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7442        1.0178        .12863E-05   -1.5377    
  17  norm          .10000E-03    .20571       -.26553E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20571        .35557E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     612.70        1.0002        .15875E-05   -1.0705    
  20  Normalizat    .10000E-01    .25505        .52466E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .95076        1.2928        .22898E-06   -.94389    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.95846e-10
Minuit parameter uncertainties:
  1  1.0072
  2  5.24039e-05
  3  1.00685
  4  0.999859
  5  0.00927776
  6  0.00162357
  7  1.0586
  8  1.00445
  9  0.00188791
  10  1.12854
  11  4.88195e-05
  12  1.67634e-06
  13  9.80207e-07
  14  7.61859e-06
  15  6.39876e-05
  16  1.01785
  17  9.6004e-09
  18  1.67333e-07
  19  1.0002
  20  2.89646e-09
  21  1.33878
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 236.830233524

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.604e+02  1.004e+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.508e-01  1.339e+00  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.000e-02  2.896e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 16.215 -24.281
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.61e-07 +/- 5.39e-09
Energy Flux (Fixed Index): 2.28e-04 +/- 1.43e-06

TS (Fixed Index): 1.44
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 4.45e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335000/likelihoodResults_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.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) = 235.650358374
delta logL = 1.17987515006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 235.642833065
delta logL = 1.18740045917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4723       1.0000         .10000E-03   10000.    
     2 'Index     '    5.9280       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90403       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=   235.6428     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4723        311.76        .39439E-02    .32280E-03
   2  Index         5.9281        7.9073        .45781E-01    .24589E-05
   3  Normalizat    .10000E-01    .24433        .12362    ** at limit **
   4  Prefactor     .90401        .34103        .45056E-01    .26339E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47232
  Index      = 5.92806
  Normalizat = 0.01
  Prefactor  = 0.904013
 **********
 **   18 **HESSE 
 **********

 FCN=   235.6428     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4723        33.252        .36292E-04   -1.5199    
   2  Index         5.9281        2.9513        .20130E-03    .18669    
   3  Normalizat    .10000E-01    .32906        .52810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90401        .38338        .20017E-03   -.96001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45684e-09
Minuit parameter uncertainties:
  1  29.3663
  2  3.16583
  3  3.29366e-07
  4  0.384527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335000': 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) = 235.642833049
delta logL = 1.18740047577

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  6.472e+00  2.937e+01  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  5.928e+00  3.166e+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:  9.040e-01  3.845e-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.000e-02  3.294e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 5.93 +/- 3.17
Photon Flux (Free Index): 3.47e-06 +/- 3.50e-06
Energy Flux (Free Index): 4.34e-04 +/- 4.20e-04

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/335000/cmap_HighResolution_562291201_562550401_4FGL_J0104.8-2416_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-01', comment='SUCCESS', photon_flux='8.61e-07', energy_flux2='4.34e-04', photon_flux_error='5.39e-09', dlogl='1.19e+00', energy_flux='2.28e-04', photon_flux2='3.47e-06', job_status='DONE', time_completed='2021-08-13 12:02:03.613259', photon_index_error2='3.17', photon_index2='5.93', ts='1.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.45e-06', energy_flux_error2='4.20e-04', EG='0.01', time_epoch_completed='1628881323.61', return_code='101', job_id='335000', GAL2='0.90', EG2='0.01', return_code2='0', energy_flux_error='1.43e-06', photon_flux_error2='3.50e-06', ts2='3.83', photon_index='2.59' WHERE bin_id='1246' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:02:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 335000: <4FGL_J0104.8-2416_daily_bin1246> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1246> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:31 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:50:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:50:59 2021
Terminated at Fri Aug 13 12:02:05 2021
Results reported at Fri Aug 13 12:02:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1246 16.2146 -24.2808 562291201 562550401 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             203.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            694 sec.

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

