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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1192
RA = 16.2146, Dec = -24.2808
tmin = 548294401, tmax = 548553601
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='334921', job_status='RUN', time_executed='2021-08-13 11:51:13.101421', time_epoch_executed='1628880673.1' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334921

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334921/ft1_4FGL_J0104.8-2416_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334921/ft1_4FGL_J0104.8-2416_daily_bin1192.fits outfile=/scratch/kocevski/334921/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1192.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=548294401.0 tmax=548553601.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.61
user 3.69
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.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/334921/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.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.17
user 0.35
sys 0.80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/334921/ltcube_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.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/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits
.....................!
real 13.74
user 12.63
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/334921/ltcube_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.fits outfile=/scratch/kocevski/334921/expmap_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.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/334921/ltcube_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.fits
.....................!
real 193.19
user 186.45
sys 6.08

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/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits outfile=/scratch/kocevski/334921/cmap_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.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.20
user 0.36
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits outfile=/scratch/kocevski/334921/cmap_HighResolution_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.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.25
user 0.34
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/334921/ft2_4FGL_J0104.8-2416_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334921/Model_4FGL_J0104.8-2416_daily_bin1192.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/334921/ft1_filtered_4FGL_J0104.8-2416_daily_bin1192.fits.....................!
real 79.70
user 77.42
sys 2.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53746E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.6376       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .73830       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16079E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1198       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2273       1.0000         .10000E-03   10000.    
    18 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87894       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88468       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=   11024.34     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     1969 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10068E-03    3.3719        .92883E-01** at limit **
   2  Prefactor     .10000E-03    3.3465        .90712E-02** at limit **
   3  norm          .10000E-03    3.6521        .90712E-02** at limit **
   4  norm          8.8932        3.5694        .33604E-02    .32348E-03
   5  Prefactor     .10000E-03    21.213        .90712E-02** at limit **
   6  norm          7.6371        5.4606        .36277E-02   -.37434E-03
   7  norm          .10000E-03    .50240        .90712E-02** at limit **
   8  Prefactor     2.7432        4.6034        .61445E-02    .19051E-02
   9  Prefactor     10.048        9.1898        .31603E-02    .29520E-02
  10  Prefactor     .90663        1.9749        .12833E-01    .20831E-02
  11  Prefactor     .10000E-03    3.4582        .90712E-02** at limit **
  12  norm          .73929        1.0886        .24523E-01    .12966E-02
  13  norm          2.7530        1.3637        .61334E-02   -.76908E-04
  14  Prefactor     .10000E-03    3.2618        .90712E-02** at limit **
  15  Prefactor     .10000E-03    .90001        .65505E-01** at limit **
  16  norm          2.1197        .86065        .70818E-02    .36521E-03
  17  norm          1.2272        1.0763        .10157E-01    .90299E-03
  18  norm          .10000E-03    .70454        .32594E-01** at limit **
  19  Prefactor     .10000E-03    43.487        .90712E-02** at limit **
  20  Normalizat    .87899        .10479        .44632E-01    .13078E-03
  21  Prefactor     .88473        .12089        .44810E-01    .11699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010068
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.89321
  Prefactor  = 0.0001
  norm       = 7.63714
  norm       = 0.0001
  Prefactor  = 2.74319
  Prefactor  = 10.048
  Prefactor  = 0.906628
  Prefactor  = 0.0001
  norm       = 0.739292
  norm       = 2.75299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1197
  norm       = 1.22723
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.878991
  Prefactor  = 0.884732
 **********
 **   18 **HESSE 
 **********

 FCN=   11024.34     FROM HESSE     STATUS=OK           331 CALLS     2300 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10068E-03    6.4075        .59759E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8932        3.5690        .12055E-03   -1.5111    
   5  Prefactor     .10000E-03    21.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.6371        5.4618        .14511E-03   -1.5155    
   7  norm          .10000E-03    .51209        .72658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7432        4.5353        .24578E-03   -1.5377    
   9  Prefactor     10.048        9.0858        .12641E-03   -1.5074    
  10  Prefactor     .90663        1.9523        .20979E-03   -1.5518    
  11  Prefactor     .10000E-03    3.5337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .73929        .88054        .12357E-02   -1.5536    
  13  norm          2.7530        1.3622        .82768E-04   -1.5376    
  14  Prefactor     .10000E-03    3.2761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.231        .18507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1197        .85755        .59771E-04   -1.5417    
  17  norm          1.2272        1.0489        .97085E-04   -1.5486    
  18  norm          .10000E-03    1.2547        .16986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87899        .12427        .20479E-03   -.97202    
  21  Prefactor     .88473        .14405        .24304E-03   -.96677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92503e-09
Minuit parameter uncertainties:
  1  0.004176
  2  8.86173e-06
  3  1.83713e-06
  4  3.56911
  5  2.65896e-05
  6  5.46216
  7  6.10682e-07
  8  4.5359
  9  9.08707
  10  1.95248
  11  1.61834e-06
  12  0.880554
  13  1.36225
  14  6.19681e-07
  15  5.22558e-05
  16  0.857552
  17  1.04893
  18  1.24554e-06
  19  0.00032078
  20  0.124307
  21  0.14411
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  2.743e+00  4.536e+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.847e-01  1.441e-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:  8.790e-01  1.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/334921/likelihoodResults_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.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) = 11023.7306648
delta logL = 0.61312707204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11023.3709386
delta logL = 0.972853282705

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 'Index     '    9.9859       1.0000          .0000       10.000    
     3 'Normalizat'    .84591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91930       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11023.37     FROM MIGRAD    STATUS=CONVERGED    191 CALLS      563 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .22181E-03    .18279E-03** at limit **
   2  Index         9.9860        1.9468        .50000       -.13433E-03
   3  Normalizat    .84589        .12317        .20821E-03    .83652E-04
   4  Prefactor     .91933        .14612        .23903E-03    .64113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.98601
  Normalizat = 0.845894
  Prefactor  = 0.919333
 **********
 **   18 **HESSE 
 **********

 FCN=   11023.37     FROM HESSE     STATUS=OK            39 CALLS      602 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .13534E-02    .22362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9860        9.7827        .50000        1.4960    
   3  Normalizat    .84589        .12391        .83282E-05   -.98388    
   4  Prefactor     .91933        .14657        .95612E-05   -.95469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26388e-07
Minuit parameter uncertainties:
  1  4.69554e-09
  2  0.992003
  3  0.123951
  4  0.146633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334921': 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) = 11023.3709384
delta logL = 0.972853474495

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  4.696e-09  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  9.986e+00  9.920e-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.193e-01  1.466e-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:  8.459e-01  1.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 16.215 -24.281
Photon Index (Free Index): 9.99 +/- 0.99
Photon Flux (Free Index): 3.18e-08 +/- 4.90e-08
Energy Flux (Free Index): 3.55e-06 +/- 5.46e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/334921/cmap_HighResolution_548294401_548553601_4FGL_J0104.8-2416_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', comment='SUCCESS', energy_flux2='3.55e-06', dlogl='9.73e-01', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-08-13 12:05:57.286689', photon_index_error2='0.99', photon_index2='9.99', ts='0.47', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.23e-08', energy_flux_error2='5.46e-06', EG='0.88', time_epoch_completed='1628881557.29', return_code='0', job_id='334921', GAL2='0.92', EG2='0.85', return_code2='0', photon_flux_error2='4.90e-08', ts2='2.52', photon_index='2.59' WHERE bin_id='1192' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:05:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0009>
Subject: Job 334921: <4FGL_J0104.8-2416_daily_bin1192> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1192> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 11:50:27 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 11:50:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 11:50:44 2021
Terminated at Fri Aug 13 12:05:58 2021
Results reported at Fri Aug 13 12:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1192 16.2146 -24.2808 548294401 548553601 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 :                                   887.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            931 sec.

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

