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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1424
RA = 16.2146, Dec = -24.2808
tmin = 608428801, tmax = 608688001
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='335258', job_status='RUN', time_executed='2021-08-13 11:54:18.512448', time_epoch_executed='1628880858.51' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335258/ft1_4FGL_J0104.8-2416_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335258/ft1_4FGL_J0104.8-2416_daily_bin1424.fits outfile=/scratch/kocevski/335258/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1424.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=608428801.0 tmax=608688001.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 11.90
user 4.83
sys 6.94

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.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/335258/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.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 7.59
user 0.37
sys 7.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/335258/ltcube_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.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/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits
.....................!
real 22.24
user 14.19
sys 7.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/335258/ltcube_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.fits outfile=/scratch/kocevski/335258/expmap_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.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/335258/ltcube_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.fits
.....................!
real 201.12
user 187.25
sys 13.39

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/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits outfile=/scratch/kocevski/335258/cmap_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.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 7.13
user 0.39
sys 6.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits outfile=/scratch/kocevski/335258/cmap_HighResolution_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.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 7.17
user 0.40
sys 6.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/335258/ft2_4FGL_J0104.8-2416_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335258/Model_4FGL_J0104.8-2416_daily_bin1424.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/335258/ft1_filtered_4FGL_J0104.8-2416_daily_bin1424.fits.....................!
real 45.34
user 35.20
sys 10.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.897       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.510       1.0000         .10000E-03   10000.    
     7 'norm      '    .33537E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3227       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54319E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.263       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8350       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4746       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0701       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5963       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88571       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=   3882.163     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1927 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.525        12.453        .29028E-07   -.98669E-05
   2  Prefactor     .10000E-03    18.569       -.66880E-06** at limit **
   3  norm          18.897        15.612       -.10510E-07   -.61937E-05
   4  norm          5.1628        6.7466        .11468E-06    .10408E-03
   5  Prefactor     .10000E-03    97.042        .15896E-04** at limit **
   6  norm          23.504        20.674        .43569E-06   -.83080E-04
   7  norm          .10000E-03    2.8136        .87647E-06** at limit **
   8  Prefactor     6.3382        9.5531       -.21531E-05   -.11138E-03
   9  Prefactor     .10000E-03    81.191        .18942E-04** at limit **
  10  Prefactor     .10000E-03    1.9611        .27867E-07** at limit **
  11  Prefactor     28.263        15.343        .11574E-07   -.89181E-04
  12  norm          .10000E-03    1.1662        .18549E-06** at limit **
  13  norm          1.8409        3.5892       -.24314E-05    .63590E-04
  14  Prefactor     .10000E-03    13.074        .14944E-05** at limit **
  15  Prefactor     3.4749        4.8374       -.29381E-06    .45828E-04
  16  norm          1.0701        1.5135       -.21669E-06    .49957E-04
  17  norm          3.5961        2.8452       -.69199E-08    .27128E-04
  18  norm          .10000E-03    2.4193        .17883E-06** at limit **
  19  Prefactor     .10000E-03    24.060        .11310E-05** at limit **
  20  Normalizat    1.0482        .21259       -.14802E-07   -.25999E-03
  21  Prefactor     .88568        .23913       -.83392E-07   -.14971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.525
  Prefactor  = 0.0001
  norm       = 18.8965
  norm       = 5.16285
  Prefactor  = 0.0001
  norm       = 23.5041
  norm       = 0.000100004
  Prefactor  = 6.33821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2631
  norm       = 0.0001
  norm       = 1.84094
  Prefactor  = 0.0001
  Prefactor  = 3.47495
  norm       = 1.07006
  norm       = 3.59607
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04816
  Prefactor  = 0.885681
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.163     FROM HESSE     STATUS=OK           319 CALLS     2246 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.525        12.459        .10891E-03   -1.4972    
   2  Prefactor     .10000E-03    18.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.897        15.608        .92135E-04   -1.4838    
   4  norm          5.1628        6.7437        .17655E-03   -1.5253    
   5  Prefactor     .10000E-03    97.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.504        20.659        .82613E-04   -1.4738    
   7  norm          .10000E-03    18.749        .19285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3382        9.5074        .15963E-03   -1.5204    
   9  Prefactor     .10000E-03    80.863        .44115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9762        .85202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.263        15.303        .75359E-04   -1.4644    
  12  norm          .10000E-03    1.1696        .65640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8409        3.5753        .15659E-03   -1.5437    
  14  Prefactor     .10000E-03    13.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4749        4.8131        .15246E-03   -1.5335    
  16  norm          1.0701        1.3917        .87689E-03   -1.5501    
  17  norm          3.5961        2.8377        .88988E-04   -1.5329    
  18  norm          .10000E-03    2.4825        .18918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0482        .24826        .22251E-03   -.91434    
  21  Prefactor     .88568        .27808        .27509E-03   -.96643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84966e-10
Minuit parameter uncertainties:
  1  12.4612
  2  1.51624e-05
  3  15.6118
  4  6.74471
  5  0.000290109
  6  20.6651
  7  0.000552398
  8  9.50961
  9  0.000290054
  10  2.3505e-07
  11  15.3056
  12  5.73296e-07
  13  3.57569
  14  3.42818e-05
  15  4.81362
  16  1.39171
  17  2.83778
  18  1.40159e-06
  19  8.15129e-06
  20  0.248533
  21  0.278521
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  6.338e+00  9.510e+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:  8.857e-01  2.785e-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.048e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/335258/likelihoodResults_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.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) = 3882.11439686
delta logL = 0.0488986236032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3882.10777791
delta logL = 0.055517577402

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3896       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9721       1.0000          .0000       10.000    
     3 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89579       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=   3882.108     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3813        9.9152        .86550E-03   -.17214E-03
   2  Index         2.9753        1.3250        .93272E-02   -.25435E-04
   3  Normalizat    1.0341        .24779        .22380E-03   -.13527E-03
   4  Prefactor     .89663        .27949        .27358E-03   -.97986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38135
  Index      = 2.97525
  Normalizat = 1.03409
  Prefactor  = 0.896628
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.108     FROM HESSE     STATUS=OK            27 CALLS      278 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3813        9.0265        .34620E-04   -1.5244    
   2  Index         2.9753        1.2081        .37309E-03   -.41692    
   3  Normalizat    1.0341        .24810        .44760E-04   -.91897    
   4  Prefactor     .89663        .27955        .10943E-04   -.96259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69137e-11
Minuit parameter uncertainties:
  1  9.02881
  2  1.22262
  3  0.248383
  4  0.28
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335258': 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) = 3882.1077702
delta logL = 0.0555252868658

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  5.381e+00  9.029e+00  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.975e+00  1.223e+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:  8.966e-01  2.800e-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.034e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
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/335258/cmap_HighResolution_608428801_608688001_4FGL_J0104.8-2416_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-08-13 12:04:32.155597', job_id='335258', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.05', time_epoch_completed='1628881472.16', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.55e-02', ts2='0.70', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1424' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 335258: <4FGL_J0104.8-2416_daily_bin1424> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1424> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:48 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:51:56 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:51:56 2021
Terminated at Fri Aug 13 12:04:33 2021
Results reported at Fri Aug 13 12:04:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1424 16.2146 -24.2808 608428801 608688001 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 :                                   704.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            825 sec.

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

