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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1319
RA = 16.2146, Dec = -24.2808
tmin = 581212801, tmax = 581472001
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='335106', job_status='RUN', time_executed='2021-08-13 11:52:38.220294', time_epoch_executed='1628880758.22' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335106/ft1_4FGL_J0104.8-2416_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335106/ft1_4FGL_J0104.8-2416_daily_bin1319.fits outfile=/scratch/kocevski/335106/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1319.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=581212801.0 tmax=581472001.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 4.45
user 2.78
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.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/335106/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1319.fits evtable="EVENTS" outfile="/scratch/kocevski/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.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 1.79
user 0.34
sys 1.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/335106/ltcube_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.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/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits
.....................!
real 16.84
user 14.96
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/335106/ltcube_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.fits outfile=/scratch/kocevski/335106/expmap_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.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/335106/ltcube_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.fits
.....................!
real 194.06
user 185.94
sys 7.07

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/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits outfile=/scratch/kocevski/335106/cmap_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.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 1.80
user 0.38
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits outfile=/scratch/kocevski/335106/cmap_HighResolution_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.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 1.85
user 0.40
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/335106/ft2_4FGL_J0104.8-2416_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335106/Model_4FGL_J0104.8-2416_daily_bin1319.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/335106/ft1_filtered_4FGL_J0104.8-2416_daily_bin1319.fits.....................!
real 57.50
user 54.48
sys 2.84

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6138       1.0000         .10000E-03   10000.    
     4 'norm      '    18.748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    168.64       1.0000         .10000E-03   10000.    
     6 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10791E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91676       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5545       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .49934       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4746       1.0000         .10000E-03   10000.    
    18 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97986       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=   6759.737     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2312 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6893       -.74124E-07** at limit **
   2  Prefactor     .10000E-03    9.6634        .11810E-05** at limit **
   3  norm          2.6135        8.6285        .55311E-06    .62188E-04
   4  norm          18.748        6.7167        .97924E-07    .13786E-03
   5  Prefactor     168.62        106.00        .42510E-05    .12359E-03
   6  norm          .10000E-03    7.2005       -.53479E-06** at limit **
   7  norm          .10000E-03    .92811        .10763E-06** at limit **
   8  Prefactor     .10075E-03    10.178       -.79583E-05** at limit **
   9  Prefactor     .10000E-03    3.5579       -.10936E-06** at limit **
  10  Prefactor     .10013E-03    3.9563        .44661E-05** at limit **
  11  Prefactor     .10000E-03    3.1588       -.23322E-07** at limit **
  12  norm          .91641        1.2426       -.21249E-07    .14951E-03
  13  norm          5.8433        2.6606       -.92383E-07    .22917E-03
  14  Prefactor     6.5543        11.606        .18819E-05    .64421E-03
  15  Prefactor     .10000E-03    3.1676        .36339E-05** at limit **
  16  norm          .49934        1.2320        .52638E-06    .76305E-03
  17  norm          2.4750        1.8591        .14598E-05    .46615E-02
  18  norm          .10000E-03    1.2683        .72238E-07** at limit **
  19  Prefactor     .10000E-03    21.034        .22082E-05** at limit **
  20  Normalizat    1.1423        .16817       -.95333E-07    .28438E-03
  21  Prefactor     .97974        .18887       -.12304E-05   -.84618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61347
  norm       = 18.7476
  Prefactor  = 168.624
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100748
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 0.0001
  norm       = 0.916412
  norm       = 5.84328
  Prefactor  = 6.55427
  Prefactor  = 0.0001
  norm       = 0.499344
  norm       = 2.47505
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14232
  Prefactor  = 0.979744
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.737     FROM HESSE     STATUS=OK           321 CALLS     2633 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6914        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6135        8.6210        .25229E-03   -1.5385    
   4  norm          18.748        6.7207        .92501E-04   -1.4842    
   5  Prefactor     168.62        106.43        .15533E-03   -1.3104    
   6  norm          .10000E-03    7.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .93273        .77348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10075E-03    51.752        .27219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5618        .15143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10013E-03    24.378        .20920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1632        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91641        1.2322        .51473E-04   -1.5517    
  13  norm          5.8433        2.6597        .85504E-04   -1.5224    
  14  Prefactor     6.5543        11.706        .78375E-03   -1.5196    
  15  Prefactor     .10000E-03    9.1938        .21307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49934        1.2191        .13655E-03   -1.5567    
  17  norm          2.4750        2.0755        .51634E-03   -1.5393    
  18  norm          .10000E-03    1.3220        .18077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1423        .19447        .22254E-03   -.88404    
  21  Prefactor     .97974        .22048        .27644E-03   -.93408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32427e-08
Minuit parameter uncertainties:
  1  7.41805e-07
  2  4.35399e-05
  3  8.62506
  4  6.72093
  5  106.554
  6  0.000136735
  7  2.74692e-06
  8  0.012458
  9  1.7565e-06
  10  0.00355268
  11  6.85717e-06
  12  1.2322
  13  2.65976
  14  11.7102
  15  0.00010922
  16  1.21912
  17  2.07552
  18  6.21565e-06
  19  0.000158315
  20  0.194593
  21  0.22068
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.797e-01  2.207e-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.142e+00  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/335106/likelihoodResults_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6759.73669879
delta logL = -9.05537026483e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6759.73669869
delta logL = -9.04542366698e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96218E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5920       1.0000          .0000       10.000    
     3 'Normalizat'    1.1422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97982       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=   6759.737     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      223 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .59135        .56578E-01** at limit **
   2  Index         2.6241        6.0642        .50000       -.46708E-05
   3  Normalizat    1.1423        .14355E-02    .36494E-01   -.13496E-03
   4  Prefactor     .97975        .16739E-02    .46014E-01    .44552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.6241
  Normalizat = 1.14231
  Prefactor  = 0.979751
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.737     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      264 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .76454        .50724E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6241        5.4197        .50000       -.49517    
   3  Normalizat    1.1423        .15118E-02    .22254E-03   -.88405    
   4  Prefactor     .97975        .17622E-02    .27644E-03   -.93408    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6036e-09
Minuit parameter uncertainties:
  1  4.3068e-05
  2  56.1794
  3  0.00151178
  4  0.00176219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335106': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6759.73660819
delta logL = 4.492176231e-08

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  4.307e-05  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.624e+00  5.618e+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:  9.798e-01  1.762e-03  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.142e+00  1.512e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.215 -24.281

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/335106/cmap_HighResolution_581212801_581472001_4FGL_J0104.8-2416_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-08-13 12:04:14.881045', job_id='335106', GAL2='0.98', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1628881454.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1319' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:04:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1319 16.2146 -24.2808 581212801 581472001 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 :                                   705.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            816 sec.

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

