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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1201
RA = 16.2146, Dec = -24.2808
tmin = 550627201, tmax = 550886401
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='334933', job_status='RUN', time_executed='2021-08-13 11:53:51.717946', time_epoch_executed='1628880831.72' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334933

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334933/ft1_4FGL_J0104.8-2416_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334933/ft1_4FGL_J0104.8-2416_daily_bin1201.fits outfile=/scratch/kocevski/334933/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1201.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=550627201.0 tmax=550886401.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 14.19
user 3.73
sys 10.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.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/334933/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.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 10.54
user 0.38
sys 10.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/334933/ltcube_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.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/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits
.....................!
real 26.95
user 15.25
sys 11.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/334933/ltcube_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.fits outfile=/scratch/kocevski/334933/expmap_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.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/334933/ltcube_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.fits
.....................!
real 205.42
user 188.17
sys 16.52

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/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits outfile=/scratch/kocevski/334933/cmap_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.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 9.73
user 0.40
sys 9.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits outfile=/scratch/kocevski/334933/cmap_HighResolution_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.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 9.76
user 0.40
sys 9.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/334933/ft2_4FGL_J0104.8-2416_daily_bin1201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334933/Model_4FGL_J0104.8-2416_daily_bin1201.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/334933/ft1_filtered_4FGL_J0104.8-2416_daily_bin1201.fits.....................!
real 58.37
user 44.36
sys 13.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8121       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    28.350       1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.192       1.0000         .10000E-03   10000.    
     6 'norm      '    23.505       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .76708       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3462       1.0000         .10000E-03   10000.    
    17 'norm      '    .10826E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .82527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1305       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .67296       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=   5305.313     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2206 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8135        12.544        .25956E-06    .31442E-05
   2  Prefactor     .10000E-03    25.901        .36210E-06** at limit **
   3  norm          .10000E-03    5.3612       -.11174E-06** at limit **
   4  norm          28.351        9.3550        .60253E-07   -.32795E-04
   5  Prefactor     59.779        133.89       -.36814E-05   -.49394E-04
   6  norm          23.511        14.125        .80531E-08   -.34471E-04
   7  norm          3.3157        2.7169        .20485E-06   -.13191E-04
   8  Prefactor     5.2549        5.0574       -.27993E-06   -.12641E-03
   9  Prefactor     .10000E-03    11.127        .66413E-06** at limit **
  10  Prefactor     .10000E-03    1.3067        .49470E-06** at limit **
  11  Prefactor     .10000E-03    13.391       -.11996E-05** at limit **
  12  norm          .76727        2.1676        .58658E-06    .22391E-03
  13  norm          4.0614        2.2763       -.15939E-06   -.25762E-03
  14  Prefactor     .10000E-03    19.081        .10055E-05** at limit **
  15  Prefactor     .10000E-03    2.4035        .23775E-06** at limit **
  16  norm          4.3462        1.7982       -.20305E-08   -.16138E-03
  17  norm          .22954E-01    .97040       -.61705E-06    .11342E-02
  18  norm          .82334        2.5718        .15207E-05    .50680E-03
  19  Prefactor     .10000E-03    12.788        .12474E-06** at limit **
  20  Normalizat    1.1308        .19760        .47243E-05   -.38775E-03
  21  Prefactor     .67250        .21596       -.94396E-05   -.12308E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.81352
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.3514
  Prefactor  = 59.7787
  norm       = 23.5105
  norm       = 3.31569
  Prefactor  = 5.25488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.767265
  norm       = 4.06137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34621
  norm       = 0.0229543
  norm       = 0.823341
  Prefactor  = 0.0001
  Normalizat = 1.13076
  Prefactor  = 0.672503
 **********
 **   18 **HESSE 
 **********

 FCN=   5305.313     FROM HESSE     STATUS=OK           321 CALLS     2527 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8135        12.546        .13503E-03   -1.5114    
   2  Prefactor     .10000E-03    26.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3667        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          28.351        9.3632        .75244E-04   -1.4643    
   5  Prefactor     59.779        134.58        .25857E-03   -1.4160    
   6  norm          23.511        14.126        .82622E-04   -1.4738    
   7  norm          3.3157        2.7161        .10442E-03   -1.5344    
   8  Prefactor     5.2549        5.0544        .15473E-03   -1.5249    
   9  Prefactor     .10000E-03    11.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3255        .81485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .76727        2.1362        .16974E-03   -1.5533    
  13  norm          4.0614        2.2752        .79331E-04   -1.5305    
  14  Prefactor     .10000E-03    19.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4186        .10996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3462        1.7977        .60222E-04   -1.5291    
  17  norm          .22954E-01    30.227        .12803E-02   -1.5678    
  18  norm          .82334        2.6312        .19282E-03   -1.5526    
  19  Prefactor     .10000E-03    12.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1308        .20297        .20830E-03   -.88770    
  21  Prefactor     .67250        .21937        .29643E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76094e-08
Minuit parameter uncertainties:
  1  12.5493
  2  9.51967e-05
  3  7.99443e-07
  4  9.36366
  5  135.276
  6  14.1277
  7  2.71617
  8  5.05477
  9  6.80276e-05
  10  1.03702e-05
  11  8.51914e-05
  12  2.13639
  13  2.27522
  14  0.000116288
  15  4.95922e-06
  16  1.79776
  17  1.66315
  18  2.63153
  19  9.21971e-06
  20  0.203108
  21  0.219654
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  5.255e+00  5.055e+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:  6.725e-01  2.197e-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.131e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 16.215 -24.281
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 7.46e-06 +/- 7.17e-06

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) = 5303.86483929
delta logL = 1.44785425604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5303.85345161
delta logL = 1.45924193209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7117       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5448       1.0000          .0000       10.000    
     3 'Normalizat'    1.1546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65218       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=   5303.853     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7161        4.3887        .46345E-02   -.91020E-04
   2  Index         1.5451        .36823        .18250       -.61189E-04
   3  Normalizat    1.1545        .16692        .36116E-01   -.64203E-04
   4  Prefactor     .65229        .18878        .67918E-01   -.12558E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.71606
  Index      = 1.54515
  Normalizat = 1.1545
  Prefactor  = 0.652295
 **********
 **   18 **HESSE 
 **********

 FCN=   5303.853     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7161        5.4089        .14144E-03   -1.5274    
   2  Index         1.5451        .51124        .71627E-02   -.76283    
   3  Normalizat    1.1545        .19290        .20640E-03   -.88021    
   4  Prefactor     .65229        .21776        .30056E-03   -1.0543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10835e-12
Minuit parameter uncertainties:
  1  5.40942
  2  0.512962
  3  0.19302
  4  0.218045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334933': 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) = 5303.85345105
delta logL = 1.45924249015

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  4.716e+00  5.409e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  1.545e+00  5.130e-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:  6.523e-01  2.180e-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.154e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 1.55 +/- 0.51
Photon Flux (Free Index): 1.20e-08 +/- 1.39e-08
Energy Flux (Free Index): 3.26e-05 +/- 4.45e-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/334933/cmap_HighResolution_550627201_550886401_4FGL_J0104.8-2416_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='3.26e-05', photon_flux_error='2.71e-08', dlogl='1.46e+00', energy_flux='7.46e-06', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-08-13 12:05:19.371250', photon_index_error2='0.51', photon_index2='1.55', ts='4.44', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='4.45e-05', EG='1.13', time_epoch_completed='1628881519.37', return_code='0', job_id='334933', GAL2='0.65', EG2='1.15', return_code2='0', energy_flux_error='7.17e-06', photon_flux_error2='1.39e-08', ts2='7.38', photon_index='2.59' WHERE bin_id='1201' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:05:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 334933: <4FGL_J0104.8-2416_daily_bin1201> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1201> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:28 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:50:45 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:45 2021
Terminated at Fri Aug 13 12:05:21 2021
Results reported at Fri Aug 13 12:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1201 16.2146 -24.2808 550627201 550886401 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 :                                   835.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            893 sec.

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

