/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 144 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7395
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1722
RA = 16.2146, Dec = -24.2808
tmin = 685670401, tmax = 685929601
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='229169', job_status='RUN', time_executed='2022-09-27 00:07:28.564431', time_epoch_executed='1664262448.56' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229169/ft1_4FGL_J0104.8-2416_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229169/ft1_4FGL_J0104.8-2416_daily_bin1722.fits outfile=/scratch/kocevski/229169/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1722.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=685670401.0 tmax=685929601.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 3.65
user 3.40
sys 0.22

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

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

Number of photons that the gtmktime cut: 404

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/229169/ltcube_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.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/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits
.....................!
real 14.40
user 14.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/229169/ltcube_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits outfile=/scratch/kocevski/229169/expmap_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.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/229169/ltcube_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits
.....................!
real 194.36
user 187.94
sys 5.79

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/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits scfile=/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits outfile=/scratch/kocevski/229169/cmap_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.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 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits scfile=/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits outfile=/scratch/kocevski/229169/cmap_HighResolution_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.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 0.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229169/Model_4FGL_J0104.8-2416_daily_bin1722.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/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits.....................!
real 40.30
user 39.03
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits', '/scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits', expMap='/scratch/kocevski/229169/expmap_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits', expCube='/scratch/kocevski/229169/ltcube_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229169/Model_4FGL_J0104.8-2416_daily_bin1722.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  0.000e+00  1.000e+06 ( 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/229169/ft1_filtered_4FGL_J0104.8-2416_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/229169/ft2_4FGL_J0104.8-2416_daily_bin1722.fits
Exposure map: /scratch/kocevski/229169/expmap_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits
Exposure cube: /scratch/kocevski/229169/ltcube_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229169/Model_4FGL_J0104.8-2416_daily_bin1722.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) = 4592.10833581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4157       1.0000          .0000       .10000E+07
     2 'Prefactor '    .40996E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .69676E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .56019E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .24612E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .52243E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.5307       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8355       1.0000          .0000       .10000E+07
     9 'Prefactor '    .86038E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38094E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.4402       1.0000          .0000       .10000E+07
    12 'norm      '    7.1003       1.0000          .0000       .10000E+07
    13 'Prefactor '    .81736E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .37216E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .20095E-07   1.0000          .0000       .10000E+07
    16 'norm      '    1.3759       1.0000          .0000       .10000E+07
    17 'norm      '    6.0998       1.0000          .0000       .10000E+07
    18 'Prefactor '    .25419E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .64169       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4592.063     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1233 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4006        8.4048        .92680E-06    .92368E-02
   2  Prefactor     .98921E-07    9.6316        .10763E-05** at limit **
   3  norm          .22204E-08    3.4907        .19094E-06** at limit **
   4  norm          .11102E-09    1.5678       -.67526E-07** at limit **
   5  norm          .42188E-08    18.900        .39252E-06** at limit **
   6  norm          .56344E-07    4.3836       -.66495E-07** at limit **
   7  Prefactor     2.5520        5.9730       -.88047E-06    .25616E-03
   8  Prefactor     2.8909        1.8163       -.23324E-06   -.57088E-03
   9  Prefactor     .99920E-09    5.4034       -.81326E-06** at limit **
  10  Prefactor     .12873E-06    4.1428       -.38379E-06** at limit **
  11  norm          3.4419        2.3375       -.11313E-06   -.17378E-02
  12  norm          7.0953        3.0596        .28373E-06    .40082E-03
  13  Prefactor     .16614E-06    3.9922        .54645E-06** at limit **
  14  Prefactor     .17297E-06    3.4483        .76983E-06** at limit **
  15  norm           .0000        1.0379        .15198E-06** at limit **
  16  norm          1.3747        1.7312       -.27689E-07    .21881E-02
  17  norm          6.1070        3.5908       -.29947E-07   -.18150E-02
  18  Prefactor     .55511E-10    22.395        .11596E-05** at limit **
  19  Normalizat    .64141        .20061        .38097E-06   -.17807E-04
  20  Prefactor     1.2089        .23871       -.12128E-04   -.82225E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40059
  Prefactor  = 9.89209e-08
  norm       = 2.22045e-09
  norm       = 1.11022e-10
  norm       = 4.21885e-09
  norm       = 5.63438e-08
  Prefactor  = 2.55195
  Prefactor  = 2.89094
  Prefactor  = 9.99201e-10
  Prefactor  = 1.2873e-07
  norm       = 3.44188
  norm       = 7.09527
  Prefactor  = 1.66145e-07
  Prefactor  = 1.72973e-07
  norm       = 0
  norm       = 1.37467
  norm       = 6.10696
  Prefactor  = 5.55112e-11
  Normalizat = 0.64141
  Prefactor  = 1.20893
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.063     FROM HESSE     STATUS=OK           331 CALLS     1564 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4006        8.5053        .54711E-03   -1.5671    
   2  Prefactor     .98921E-07    11.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22204E-08    3.5269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11102E-09    1.5667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42188E-08    18.920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .56344E-07    4.8578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5520        6.7457        .64180E-03   -1.5676    
   8  Prefactor     2.8909        12.152        .60363E-03   -1.5674    
   9  Prefactor     .99920E-09    8.9991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12873E-06    9.6604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4419        2.3435        .54507E-03   -1.5671    
  12  norm          7.0953        3.0952        .37622E-03   -1.5655    
  13  Prefactor     .16614E-06    6.1253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17297E-06    5.4148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.0148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3747        1.7566        .92831E-03   -1.5685    
  17  norm          6.1070        3.5971        .40627E-03   -1.5659    
  18  Prefactor     .55511E-10    22.349        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64141        .16773        .41507E-01   -1.0625    
  20  Prefactor     1.2089        .19877        .50020E-01   -.86057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8505e-07
Minuit parameter uncertainties:
  1  8.50529
  2  0.00210229
  3  0.000176799
  4  2.64862e-05
  5  0.00056497
  6  0.00104658
  7  6.74573
  8  11.8543
  9  0.000187305
  10  0.00223043
  11  2.34351
  12  3.09517
  13  0.00201747
  14  0.00193545
  15  2.78526e-06
  16  1.75661
  17  3.59705
  18  5.74538e-05
  19  0.167861
  20  0.198894
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.552e+00  6.746e+00  0.000e+00  1.000e+06 ( 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.209e+00  1.989e-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:  6.414e-01  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229169/likelihoodResults_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.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) = 4591.99312281
delta logL = 0.0702427030246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4591.98573398
delta logL = 0.0776315364046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9637       1.0000          .0000       .10000E+07
     2 'Index     '    3.1632       1.0000          .0000       10.000    
     3 'Normalizat'    .63266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2155       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=   4591.986     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9634        5.9484        .16703E-04    .54586E-03
   2  Index         3.1637        1.8261        .12226E-01    .20282E-04
   3  Normalizat    .63245        .19962        .24555E-03   -.26247E-03
   4  Prefactor     1.2157        .23957        .22057E-03   -.24321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96339
  Index      = 3.1637
  Normalizat = 0.63245
  Prefactor  = 1.2157
 **********
 **   18 **HESSE 
 **********

 FCN=   4591.986     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9634        5.0567        .66813E-06   -1.5680    
   2  Index         3.1637        1.5637        .48905E-03   -.37606    
   3  Normalizat    .63245        .19994        .98221E-05   -1.0662    
   4  Prefactor     1.2157        .23981        .44115E-04   -.85850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19887e-10
Minuit parameter uncertainties:
  1  5.05668
  2  1.59475
  3  0.200167
  4  0.240024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229169': 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) = 4591.98573334
delta logL = 0.0776321723133

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.963e+00  5.057e+00  0.000e+00  1.000e+06 ( 1.000e-12)
227        Index:  3.164e+00  1.595e+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:  1.216e+00  2.400e-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:  6.324e-01  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/229169/cmap_HighResolution_685670401_685929601_4FGL_J0104.8-2416_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2022-09-27 00:15:21.318741', job_id='229169', GAL2='1.22', fit_tolerance='1e-08', EG2='0.63', EG='0.64', time_epoch_completed='1664262921.32', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='7.76e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1722' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 00:15:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 229169: <4FGL_J0104.8-2416_daily_bin1722> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 27 00:04:49 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 00:04:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 00:04:54 2022
Terminated at Tue Sep 27 00:15:21 2022
Results reported at Tue Sep 27 00:15:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1722 16.2146 -24.2808 685670401 685929601 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            632 sec.

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

