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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1459
RA = 16.2146, Dec = -24.2808
tmin = 617500801, tmax = 617760001
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='335297', job_status='RUN', time_executed='2021-08-13 11:56:10.095859', time_epoch_executed='1628880970.1' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335297/ft1_4FGL_J0104.8-2416_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335297/ft1_4FGL_J0104.8-2416_daily_bin1459.fits outfile=/scratch/kocevski/335297/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1459.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=617500801.0 tmax=617760001.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 12.03
user 2.46
sys 9.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/335297/ltcube_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.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/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits
.....................!
real 27.92
user 16.12
sys 11.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/335297/ltcube_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.fits outfile=/scratch/kocevski/335297/expmap_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.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/335297/ltcube_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.fits
.....................!
real 203.91
user 185.79
sys 17.38

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/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits scfile=/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits outfile=/scratch/kocevski/335297/cmap_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.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 9.84
user 0.37
sys 9.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits scfile=/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits outfile=/scratch/kocevski/335297/cmap_HighResolution_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.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 9.82
user 0.38
sys 9.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/335297/ft2_4FGL_J0104.8-2416_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335297/Model_4FGL_J0104.8-2416_daily_bin1459.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/335297/ft1_filtered_4FGL_J0104.8-2416_daily_bin1459.fits.....................!
real 46.28
user 32.76
sys 13.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.205       1.0000         .10000E-03   10000.    
     4 'norm      '    26.702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.355       1.0000         .10000E-03   10000.    
     6 'norm      '    12.065       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7505       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3044       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2975       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4406       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3126       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.690       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85138       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=   3554.763     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2139 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.762       -.11922E-04** at limit **
   2  Prefactor     .10000E-03    18.353        .11180E-04** at limit **
   3  norm          11.205        12.394       -.19621E-06    .30161E-05
   4  norm          26.700        12.456       -.81344E-06    .86769E-04
   5  Prefactor     61.327        113.94       -.35247E-04    .68151E-05
   6  norm          12.066        12.472        .12720E-05    .27332E-04
   7  norm          3.7504        3.3255        .34799E-07    .28398E-04
   8  Prefactor     .10000E-03    2.8054       -.18620E-06** at limit **
   9  Prefactor     .10000E-03    8.9011        .16960E-05** at limit **
  10  Prefactor     .10000E-03    2.3984       -.30811E-06** at limit **
  11  Prefactor     .10000E-03    6.8073        .92808E-06** at limit **
  12  norm          1.3050        1.7733       -.30801E-06   -.15959E-03
  13  norm          1.2978        2.1520       -.34346E-06   -.23844E-03
  14  Prefactor     .10000E-03    8.1106       -.28608E-05** at limit **
  15  Prefactor     .10000E-03    4.8428        .52118E-06** at limit **
  16  norm          1.4407        1.0606       -.15060E-06    .56755E-04
  17  norm          4.3135        3.3431       -.16794E-05   -.92128E-04
  18  norm          1.1048        3.3408        .17774E-05   -.21827E-03
  19  Prefactor     19.642        58.003       -.10274E-03    .60211E-05
  20  Normalizat    1.0593        .22128        .67534E-05   -.12823E-03
  21  Prefactor     .85136        .24083        .11372E-05    .11247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2053
  norm       = 26.7003
  Prefactor  = 61.3273
  norm       = 12.0664
  norm       = 3.7504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30503
  norm       = 1.29776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44065
  norm       = 4.31348
  norm       = 1.10482
  Prefactor  = 19.6417
  Normalizat = 1.05933
  Prefactor  = 0.851357
 **********
 **   18 **HESSE 
 **********

 FCN=   3554.763     FROM HESSE     STATUS=OK           317 CALLS     2456 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.205        12.395        .11968E-03   -1.5038    
   4  norm          26.700        12.476        .77526E-04   -1.4674    
   5  Prefactor     61.327        113.98        .51225E-04   -1.4140    
   6  norm          12.066        12.474        .11533E-03   -1.5013    
   7  norm          3.7504        3.3252        .99676E-04   -1.5321    
   8  Prefactor     .10000E-03    2.8100        .97520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9282        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4255        .90174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8369        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3050        1.7440        .89453E-04   -1.5479    
  13  norm          1.2978        2.1092        .10913E-03   -1.5480    
  14  Prefactor     .10000E-03    8.1172        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9348        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4407        1.0579        .50989E-04   -1.5468    
  17  norm          4.3135        3.3373        .88783E-04   -1.5293    
  18  norm          1.1048        3.2920        .17749E-03   -1.5498    
  19  Prefactor     19.642        57.995        .90261E-04   -1.4821    
  20  Normalizat    1.0593        .25682        .22334E-03   -.91069    
  21  Prefactor     .85136        .27973        .27744E-03   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2037e-10
Minuit parameter uncertainties:
  1  6.02942e-05
  2  4.13216e-05
  3  12.3979
  4  12.4771
  5  114.389
  6  12.4766
  7  3.32532
  8  3.34538e-06
  9  2.22356e-05
  10  1.06767e-05
  11  1.47622e-05
  12  1.74409
  13  2.10936
  14  5.04953e-06
  15  5.43679e-06
  16  1.05792
  17  3.33748
  18  3.29255
  19  58.1625
  20  0.257121
  21  0.280197
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  1.000e-04  3.345e-06  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.514e-01  2.802e-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.059e+00  2.571e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335297/likelihoodResults_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.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) = 3554.76453451
delta logL = -0.00166454874898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3554.76286995
delta logL = 8.88803697308e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5872       1.0000          .0000       10.000    
     3 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85137       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3554.763     FROM MIGRAD    STATUS=FAILED        93 CALLS      240 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    629.41        .97615E-03** at limit **
   2  Index         2.3007        6.1322        .50000       -.36728E-06
   3  Normalizat    1.0593        .14629        .22333E-03    .16289E-04
   4  Prefactor     .85135        .16549        .27744E-03    .18645E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3554.763     FROM SIMPLEX   STATUS=UNCHANGED    183 CALLS      423 TOTAL
                     EDM=   .81E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    629.41        .25635E-03** at limit **
   2  Index         2.3007        6.1322        .47100E-06   -.36728E-06
   3  Normalizat    1.0593        .14629        .52990E-07    .16289E-04
   4  Prefactor     .85135        .16549        .27029E-07    .18645E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3554.763     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      457 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0891        .19523E-03** at limit **
   2  Index         2.3031        8.7291        .50000       -.21955E-06
   3  Normalizat    1.0593        .24552        .89334E-05    .15908E-04
   4  Prefactor     .85135        .27767        .11097E-04    .18542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3031
  Normalizat = 1.05933
  Prefactor  = 0.851352
 **********
 **   18 **HESSE 
 **********

 FCN=   3554.763     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9047        .39046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3031        8.1316        .50000       -.56970    
   3  Normalizat    1.0593        .24578        .17867E-05   -.91068    
   4  Prefactor     .85135        .27803        .22195E-05   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4552e-11
Minuit parameter uncertainties:
  1  3.14491e-05
  2  146.443
  3  0.246049
  4  0.278497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335297': 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) = 3554.76286942
delta logL = 5.38163021702e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.514e-01  2.785e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.059e+00  2.460e-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/335297/cmap_HighResolution_617500801_617760001_4FGL_J0104.8-2416_daily_bin1459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-08-13 12:06:46.916009', job_id='335297', GAL2='0.85', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1628881606.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='5.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1459' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 335297: <4FGL_J0104.8-2416_daily_bin1459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1459 16.2146 -24.2808 617500801 617760001 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 :                                   770.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            957 sec.

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

