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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1546
RA = 16.2146, Dec = -24.2808
tmin = 640051201, tmax = 640310401
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='336463', job_status='RUN', time_executed='2021-08-13 11:57:12.762870', time_epoch_executed='1628881032.76' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336463/ft1_4FGL_J0104.8-2416_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336463/ft1_4FGL_J0104.8-2416_daily_bin1546.fits outfile=/scratch/kocevski/336463/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1546.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=640051201.0 tmax=640310401.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.87
user 3.41
sys 3.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/336463/ltcube_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.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/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits
.....................!
real 16.99
user 13.00
sys 3.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/336463/ltcube_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.fits outfile=/scratch/kocevski/336463/expmap_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.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/336463/ltcube_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.fits
.....................!
real 196.04
user 185.60
sys 9.89

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/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits scfile=/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits outfile=/scratch/kocevski/336463/cmap_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.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.73
user 0.39
sys 3.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits scfile=/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits outfile=/scratch/kocevski/336463/cmap_HighResolution_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.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.64
user 0.39
sys 3.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/336463/ft2_4FGL_J0104.8-2416_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336463/Model_4FGL_J0104.8-2416_daily_bin1546.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/336463/ft1_filtered_4FGL_J0104.8-2416_daily_bin1546.fits.....................!
real 48.49
user 42.85
sys 5.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.684       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    50.079       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.281       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9203       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31711E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3759       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14370E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5655       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87923       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86510       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=   4938.442     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2310 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.685        14.761        .18782E-06    .25219E-04
   2  Prefactor     .10000E-03    16.106       -.25538E-06** at limit **
   3  norm          .10000E-03    5.2518        .83773E-07** at limit **
   4  norm          50.079        10.600        .83942E-07    .13432E-04
   5  Prefactor     30.288        103.03       -.91838E-05   -.10143E-03
   6  norm          .10000E-03    4.4536        .80811E-07** at limit **
   7  norm          2.9199        3.2137        .12899E-06    .38993E-03
   8  Prefactor     .10152E-03    28.420        .12652E-04** at limit **
   9  Prefactor     31.592        15.878        .19552E-05    .79181E-03
  10  Prefactor     .10000E-03    1.0623        .12630E-07** at limit **
  11  Prefactor     .10000E-03    5.8146        .22005E-06** at limit **
  12  norm          2.3766        2.0950       -.17741E-06   -.15431E-03
  13  norm          3.7857        2.6508       -.90214E-06    .65294E-03
  14  Prefactor     .10026E-03    74.805       -.20544E-04** at limit **
  15  Prefactor     .10000E-03    2.5963        .97654E-07** at limit **
  16  norm          1.5655        1.2543        .41721E-07    .18400E-03
  17  norm          .10000E-03    .76719        .12156E-07** at limit **
  18  norm          2.3483        2.6050       -.74561E-07    .79820E-04
  19  Prefactor     .10000E-03    22.759        .74128E-06** at limit **
  20  Normalizat    .87906        .17478       -.81582E-06   -.33172E-03
  21  Prefactor     .86534        .19162       -.41264E-06   -.31927E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6847
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 50.0787
  Prefactor  = 30.2878
  norm       = 0.0001
  norm       = 2.91989
  Prefactor  = 0.000101523
  Prefactor  = 31.5919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37657
  norm       = 3.78568
  Prefactor  = 0.000100256
  Prefactor  = 0.0001
  norm       = 1.56548
  norm       = 0.0001
  norm       = 2.34826
  Prefactor  = 0.0001
  Normalizat = 0.879059
  Prefactor  = 0.865342
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.442     FROM HESSE     STATUS=OK           317 CALLS     2627 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.685        14.762        .90276E-04   -1.4820    
   2  Prefactor     .10000E-03    16.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2574        .15730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          50.079        10.623        .56669E-04   -1.4291    
   5  Prefactor     30.288        104.18        .72810E-04   -1.4607    
   6  norm          .10000E-03    4.4555        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9199        3.2079        .12682E-03   -1.5366    
   8  Prefactor     .10152E-03    96.327        .27971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.592        16.136        .71305E-04   -1.4583    
  10  Prefactor     .10000E-03    1.0649        .70732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8320        .16523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3766        2.0485        .90217E-04   -1.5400    
  13  norm          3.7857        2.6625        .45993E-03   -1.5319    
  14  Prefactor     .10026E-03    94.494        .51245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7572        .21191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5655        1.2527        .67711E-04   -1.5458    
  17  norm          .10000E-03    .77505        .60062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3483        2.5969        .11471E-03   -1.5401    
  19  Prefactor     .10000E-03    22.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87906        .20354        .22613E-03   -.97200    
  21  Prefactor     .86534        .22386        .26208E-03   -.97363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88831e-08
Minuit parameter uncertainties:
  1  14.7648
  2  1.49534e-05
  3  1.198e-05
  4  10.6236
  5  104.815
  6  2.11921e-05
  7  3.20805
  8  0.0242615
  9  16.1383
  10  9.17923e-07
  11  3.45408e-05
  12  2.04851
  13  2.66255
  14  0.00985082
  15  6.64513e-05
  16  1.25276
  17  1.09583e-06
  18  2.59698
  19  0.000128776
  20  0.203717
  21  0.2241
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.015e-04  2.426e-02  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:  8.653e-01  2.241e-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.791e-01  2.037e-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: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336463/likelihoodResults_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.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) = 4938.44191256
delta logL = -4.86081407871e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4938.40777923
delta logL = 0.0340847223733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28616       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2671       1.0000          .0000       10.000    
     3 'Normalizat'    .86489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87471       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=   4938.408     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      430 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28586        4.1980        .30023E-01    .10779E-02
   2  Index         4.2679        1.5300        .50000        .82107E-05
   3  Normalizat    .86489        .11352E-01    .44451E-01    .95010E-05
   4  Prefactor     .87472        .13144E-01    .44682E-01    .99766E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.285857
  Index      = 4.26793
  Normalizat = 0.864892
  Prefactor  = 0.874722
 **********
 **   18 **HESSE 
 **********

 FCN=   4938.408     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      465 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28586        205.04        .10345E-02   -1.5601    
   2  Index         4.2679        6.5828        .79383E-02   -.14694    
   3  Normalizat    .86489        .13823        .22768E-03   -.97705    
   4  Prefactor     .87472        .15284        .26077E-03   -.97030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33534e-08
Minuit parameter uncertainties:
  1  15.3622
  2  34.7721
  3  0.138289
  4  0.152918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336463': 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) = 4938.40777921
delta logL = 0.0340847456573

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.747e-01  1.529e-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.649e-01  1.383e-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/336463/cmap_HighResolution_640051201_640310401_4FGL_J0104.8-2416_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.48e-08', time_completed='2021-08-13 12:07:45.387596', job_id='336463', GAL2='0.87', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1628881665.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1546' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:07:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 336463: <4FGL_J0104.8-2416_daily_bin1546> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1546> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Aug 13 11:55:29 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:55:35 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:55:35 2021
Terminated at Fri Aug 13 12:07:46 2021
Results reported at Fri Aug 13 12:07:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1546 16.2146 -24.2808 640051201 640310401 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 :                                   674.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             256.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            737 sec.

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

