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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1611
RA = 16.2146, Dec = -24.2808
tmin = 656899201, tmax = 657158401
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='135457', job_status='RUN', time_executed='2021-12-07 11:53:30.460763', time_epoch_executed='1638906810.46' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135457

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135457/ft1_4FGL_J0104.8-2416_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135457/ft1_4FGL_J0104.8-2416_daily_bin1611.fits outfile=/scratch/kocevski/135457/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1611.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=656899201.0 tmax=657158401.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.64
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/135457/ltcube_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.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/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits
.....................!
real 16.49
user 16.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/135457/ltcube_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.fits outfile=/scratch/kocevski/135457/expmap_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.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/135457/ltcube_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.fits
.....................!
real 192.49
user 186.77
sys 5.34

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/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits scfile=/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits outfile=/scratch/kocevski/135457/cmap_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits scfile=/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits outfile=/scratch/kocevski/135457/cmap_HighResolution_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/135457/ft2_4FGL_J0104.8-2416_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135457/Model_4FGL_J0104.8-2416_daily_bin1611.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/135457/ft1_filtered_4FGL_J0104.8-2416_daily_bin1611.fits.....................!
real 47.18
user 45.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9253       1.0000         .10000E-03   10000.    
     4 'norm      '    .16627       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91129       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.539       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1153       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.003       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98615       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68154       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=   5768.129     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2239 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.491        9.7646        .29543E-02   -.21640E-02
   2  Prefactor     .10000E-03    4.0231        .90712E-02** at limit **
   3  norm          9.9254        7.7631        .31798E-02    .63887E-04
   4  norm          .17684        2.6021        .67190E-01    .23861E-02
   5  Prefactor     .10001E-03    69.041        .90712E-02** at limit **
   6  norm          .10000E-03    3.4952        .90712E-02** at limit **
   7  norm          .10000E-03    .81976        .90712E-02** at limit **
   8  Prefactor     .10000E-03    6.2882        .90712E-02** at limit **
   9  Prefactor     .10000E-03    13.706        .90712E-02** at limit **
  10  Prefactor     .10000E-03    .80387        .90712E-02** at limit **
  11  Prefactor     .10000E-03    6.8672        .90712E-02** at limit **
  12  norm          .90947        1.6573        .26761E-01    .12834E-02
  13  norm          2.8446        1.9136        .60271E-02   -.33228E-04
  14  Prefactor     14.540        11.945        .26261E-02    .15974E-02
  15  Prefactor     .10000E-03    1.6722        .90712E-02** at limit **
  16  norm          1.1152        1.0535        .11150E-01    .23323E-03
  17  norm          .10000E-03    .55538        .90712E-02** at limit **
  18  norm          .10000E-03    .95027        .90712E-02** at limit **
  19  Prefactor     14.002        29.749        .26759E-02    .34273E-03
  20  Normalizat    .98623        .13388        .45993E-01    .84409E-04
  21  Prefactor     .68146        .15527        .42155E-01    .72975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4912
  Prefactor  = 0.0001
  norm       = 9.92541
  norm       = 0.176844
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.909473
  norm       = 2.84458
  Prefactor  = 14.5403
  Prefactor  = 0.0001
  norm       = 1.11521
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0017
  Normalizat = 0.986234
  Prefactor  = 0.681456
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.129     FROM HESSE     STATUS=OK           311 CALLS     2550 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.491        9.7594        .11817E-03   -1.5030    
   2  Prefactor     .10000E-03    4.0235        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9254        7.7641        .12719E-03   -1.5078    
   4  norm          .17684        19.141        .23216E-02   -1.5624    
   5  Prefactor     .10001E-03    69.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4972        .13867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .82827        .67140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .80626        .66497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .90947        1.5025        .12409E-02   -1.5517    
  13  norm          2.8446        1.9078        .81951E-04   -1.5371    
  14  Prefactor     14.540        11.936        .10504E-03   -1.4945    
  15  Prefactor     .10000E-03    1.6963        .95622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1152        1.0290        .72309E-04   -1.5497    
  17  norm          .10000E-03    .57002        .11041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .97983        .14449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.002        29.744        .10704E-03   -1.4959    
  20  Normalizat    .98623        .15878        .18342E-03   -.93493    
  21  Prefactor     .68146        .18460        .25604E-03   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15129e-08
Minuit parameter uncertainties:
  1  9.7607
  2  3.5943e-06
  3  7.7649
  4  3.67984
  5  0.00137861
  6  7.93395e-06
  7  3.10825e-06
  8  0.000184187
  9  0.000503826
  10  3.83233e-06
  11  0.000253869
  12  1.50259
  13  1.90786
  14  11.9375
  15  3.39396e-06
  16  1.02902
  17  1.33637e-06
  18  2.76314e-06
  19  29.775
  20  0.158855
  21  0.184769
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  1.842e-04  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.815e-01  1.848e-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:  9.862e-01  1.589e-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: 6.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135457/likelihoodResults_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.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) = 5768.13006352
delta logL = -0.000739225600228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5768.12932416
delta logL = 1.38201357913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6208       1.0000          .0000       10.000    
     3 'Normalizat'    .98632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68139       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=   5768.129     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    7.8052        .36285E-03** at limit **
   2  Index         2.6594        6.3276        .50000       -.54200E-04
   3  Normalizat    .98623        .15477        .18342E-03   -.16616E-03
   4  Prefactor     .68146        .18336        .25604E-03   -.11234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.65941
  Normalizat = 0.986233
  Prefactor  = 0.681456
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.129     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7.2036        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6594        6.3213        .50000       -.48716    
   3  Normalizat    .98623        .15490        .36684E-04   -.93493    
   4  Prefactor     .68146        .18353        .10242E-04   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66996e-09
Minuit parameter uncertainties:
  1  0.000797594
  2  4.42643
  3  0.154974
  4  0.183691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135457': 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) = 5768.1293235
delta logL = 7.96580025053e-07

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  7.976e-04  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.659e+00  4.426e+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:  6.815e-01  1.837e-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:  9.862e-01  1.550e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/135457/cmap_HighResolution_656899201_657158401_4FGL_J0104.8-2416_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.74e-08', time_completed='2021-12-07 12:03:37.014112', job_id='135457', GAL2='0.68', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1638907417.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='7.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1611' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:03:37 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 135457: <4FGL_J0104.8-2416_daily_bin1611> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1611> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 11:50:24 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 11:52:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 11:52:34 2021
Terminated at Tue Dec  7 12:03:37 2021
Results reported at Tue Dec  7 12:03:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1611 16.2146 -24.2808 656899201 657158401 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 :                                   606.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            793 sec.

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

