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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1461
RA = 16.2146, Dec = -24.2808
tmin = 618019201, tmax = 618278401
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='335299', job_status='RUN', time_executed='2021-08-13 11:56:29.375318', time_epoch_executed='1628880989.38' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335299

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335299/ft1_4FGL_J0104.8-2416_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335299/ft1_4FGL_J0104.8-2416_daily_bin1461.fits outfile=/scratch/kocevski/335299/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1461.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=618019201.0 tmax=618278401.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.70
user 4.88
sys 2.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335299/ft1_filtered_4FGL_J0104.8-2416_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/335299/ltcube_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.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/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits
.....................!
real 15.61
user 12.35
sys 3.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335299/ft1_filtered_4FGL_J0104.8-2416_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/335299/ltcube_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.fits outfile=/scratch/kocevski/335299/expmap_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.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/335299/ltcube_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.fits
.....................!
real 195.49
user 185.61
sys 8.32

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/335299/ft1_filtered_4FGL_J0104.8-2416_daily_bin1461.fits scfile=/scratch/kocevski/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits outfile=/scratch/kocevski/335299/cmap_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.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.09
user 0.37
sys 2.68

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335299/ft1_filtered_4FGL_J0104.8-2416_daily_bin1461.fits scfile=/scratch/kocevski/335299/ft2_4FGL_J0104.8-2416_daily_bin1461.fits outfile=/scratch/kocevski/335299/cmap_HighResolution_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.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.11
user 0.37
sys 2.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.577       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72935       1.0000         .10000E-03   10000.    
     3 'norm      '    11.143       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15481E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.126       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4475       1.0000         .10000E-03   10000.    
    16 'norm      '    .48056       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6057       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77716       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2253       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=   3659.439     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2588 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.577        22.402       -.82009E-06   -.12077E-03
   2  Prefactor     .72850        37.342       -.46708E-06    .43824E-04
   3  norm          11.141        14.335       -.13048E-07    .22710E-05
   4  norm          1.2336        6.0168        .13225E-05   -.58172E-04
   5  Prefactor     .10000E-03    30.982       -.11745E-09** at limit **
   6  norm          .10000E-03    4.0820        .60042E-08** at limit **
   7  norm          2.1899        4.1628        .25304E-06   -.48794E-04
   8  Prefactor     10.006        8.8171        .12103E-05   -.89056E-04
   9  Prefactor     .10476E-03    15.306       -.86417E-06** at limit **
  10  Prefactor     1.6460        6.3809        .12206E-05   -.59964E-04
  11  Prefactor     23.148        19.659        .22362E-06    .66021E-04
  12  norm          .10000E-03    1.6647        .11051E-06** at limit **
  13  norm          .10000E-03    1.2077       -.11737E-06** at limit **
  14  Prefactor     22.764        21.898       -.18441E-05   -.20335E-03
  15  Prefactor     1.4524        6.3963        .12147E-05   -.49459E-04
  16  norm          .48024        1.2806        .32992E-06   -.10861E-03
  17  norm          1.6052        2.7617        .17677E-06   -.38424E-04
  18  norm          .10000E-03    1.3352       -.10343E-08** at limit **
  19  Prefactor     .10000E-03    41.869        .11060E-06** at limit **
  20  Normalizat    .77725        .22398       -.44677E-06   -.90992E-05
  21  Prefactor     1.2253        .24792       -.42686E-06    .11423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.577
  Prefactor  = 0.728496
  norm       = 11.1408
  norm       = 1.23363
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.18993
  Prefactor  = 10.0058
  Prefactor  = 0.000104763
  Prefactor  = 1.64601
  Prefactor  = 23.1478
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.7639
  Prefactor  = 1.45242
  norm       = 0.480242
  norm       = 1.60515
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.777245
  Prefactor  = 1.22528
 **********
 **   18 **HESSE 
 **********

 FCN=   3659.439     FROM HESSE     STATUS=OK           333 CALLS     2921 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.577        22.662        .77707E-04   -1.4676    
   2  Prefactor     .72850        330.74        .70342E-02   -1.5537    
   3  norm          11.141        14.339        .12002E-03   -1.5040    
   4  norm          1.2336        6.0590        .28494E-03   -1.5486    
   5  Prefactor     .10000E-03    30.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0820        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1899        4.1485        .16260E-03   -1.5412    
   8  Prefactor     10.006        9.0064        .63371E-03   -1.5075    
   9  Prefactor     .10476E-03    22.583        .68681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6460        6.4127        .28400E-03   -1.5451    
  11  Prefactor     23.148        19.445        .83294E-04   -1.4745    
  12  norm          .10000E-03    1.6639        .75833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2128        .64826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.764        22.842        .83979E-04   -1.4753    
  15  Prefactor     1.4524        6.1183        .26281E-03   -1.5467    
  16  norm          .48024        1.2609        .10727E-03   -1.5569    
  17  norm          1.6052        2.7182        .12283E-03   -1.5455    
  18  norm          .10000E-03    1.3405        .68235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .77725        .26678        .25750E-03   -1.0092    
  21  Prefactor     1.2253        .29912        .24382E-03   -.85557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45573e-10
Minuit parameter uncertainties:
  1  22.6697
  2  31.2173
  3  14.3436
  4  5.46858
  5  6.34422e-06
  6  5.8645e-07
  7  4.14905
  8  9.00766
  9  0.0207504
  10  6.41534
  11  19.4499
  12  7.42293e-06
  13  4.80471e-06
  14  22.8506
  15  5.96286
  16  1.26095
  17  2.71845
  18  7.23846e-07
  19  1.48347e-05
  20  0.267225
  21  0.29954
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.001e+01  9.008e+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:  1.225e+00  2.995e-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:  7.772e-01  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 16.215 -24.281
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 4.83e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.28e-05

TS (Fixed Index): 2.26
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335299/likelihoodResults_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.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) = 3659.34303475
delta logL = 0.0964302056923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3659.33789018
delta logL = 0.101574777016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.380       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2608       1.0000          .0000       10.000    
     3 'Normalizat'    .79205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2119       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=   3659.338     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      279 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.378        9.9871        .11876E-03   -.29676E-05
   2  Index         2.2612        .68636        .80642E-02   -.12526E-05
   3  Normalizat    .79209        .25304        .25531E-03   -.16543E-04
   4  Prefactor     1.2119        .29357        .24492E-03    .81231E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3776
  Index      = 2.26116
  Normalizat = 0.792087
  Prefactor  = 1.21189
 **********
 **   18 **HESSE 
 **********

 FCN=   3659.338     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.378        9.9637        .47504E-05   -1.5033    
   2  Index         2.2612        .68466        .32257E-03   -.57969    
   3  Normalizat    .79209        .25329        .10212E-04   -1.0036    
   4  Prefactor     1.2119        .29384        .97968E-05   -.85966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96664e-12
Minuit parameter uncertainties:
  1  9.96517
  2  0.687754
  3  0.253664
  4  0.294239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335299': 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) = 3659.33788983
delta logL = 0.101575133265

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.138e+01  9.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.261e+00  6.878e-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:  1.212e+00  2.942e-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:  7.921e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 2.26 +/- 0.69
Photon Flux (Free Index): 4.37e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.84e-05

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/335299/cmap_HighResolution_618019201_618278401_4FGL_J0104.8-2416_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='1.76e-05', photon_flux_error='4.83e-08', dlogl='1.02e-01', energy_flux='1.42e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-08-13 12:05:50.907551', photon_index_error2='0.69', photon_index2='2.26', ts='2.26', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.84e-05', EG='0.78', time_epoch_completed='1628881550.91', return_code='0', job_id='335299', GAL2='1.21', EG2='0.79', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.58e-08', ts2='2.47', photon_index='2.59' WHERE bin_id='1461' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 335299: <4FGL_J0104.8-2416_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1461 16.2146 -24.2808 618019201 618278401 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 :                                   594.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            900 sec.

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

