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


Performing analysis on: 4FGL_J0104.8-2416_daily_bin1586
RA = 16.2146, Dec = -24.2808
tmin = 650419201, tmax = 650678401
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='985390', job_status='RUN', time_executed='2021-08-15 00:03:40.069028', time_epoch_executed='1629011020.07' WHERE source_name='4FGL J0104.8-2416' and cadence='daily' and bin_id='1586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985390/ft1_4FGL_J0104.8-2416_daily_bin1586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985390/ft1_4FGL_J0104.8-2416_daily_bin1586.fits outfile=/scratch/kocevski/985390/ft1_filteredMKT_4FGL_J0104.8-2416_daily_bin1586.fits ra=16.2146 dec=-24.2808 rad=12.0 tmin=650419201.0 tmax=650678401.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 10.13
user 3.37
sys 6.70

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits" evtable="EVENTS" scfile=/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits sctable="SC_DATA" outfile=/scratch/kocevski/985390/ltcube_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.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/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits
.....................!
real 20.67
user 13.07
sys 7.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits sctable="SC_DATA" expcube=/scratch/kocevski/985390/ltcube_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.fits outfile=/scratch/kocevski/985390/expmap_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.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/985390/ltcube_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.fits
.....................!
real 199.88
user 186.39
sys 12.74

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/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits scfile=/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits outfile=/scratch/kocevski/985390/cmap_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.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 6.92
user 0.39
sys 6.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits scfile=/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits outfile=/scratch/kocevski/985390/cmap_HighResolution_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.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 6.88
user 0.40
sys 6.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits evtable="EVENTS" scfile=/scratch/kocevski/985390/ft2_4FGL_J0104.8-2416_daily_bin1586.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985390/Model_4FGL_J0104.8-2416_daily_bin1586.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/985390/ft1_filtered_4FGL_J0104.8-2416_daily_bin1586.fits.....................!
real 45.97
user 35.36
sys 9.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    47.591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    126.02       1.0000         .10000E-03   10000.    
     6 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7365       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41585       1.0000         .10000E-03   10000.    
    12 'norm      '    .25388E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .47625       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91602       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99574       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=   3811.539     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2244 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8481       -.60332E-07** at limit **
   2  Prefactor     .10000E-03    9.8643        .12682E-08** at limit **
   3  norm          .10000E-03    5.8325        .12286E-06** at limit **
   4  norm          47.589        12.424        .41702E-07   -.85304E-05
   5  Prefactor     125.91        168.26       -.40692E-05   -.18605E-03
   6  norm          .10000E-03    14.989       -.18247E-05** at limit **
   7  norm          .10000E-03    2.1462        .14032E-06** at limit **
   8  Prefactor     7.4240        9.7111       -.11438E-05   -.14740E-03
   9  Prefactor     4.7382        13.075        .80026E-05    .71108E-04
  10  Prefactor     3.0187        4.0070       -.10018E-07   -.17913E-03
  11  Prefactor     .43004        11.848       -.79459E-06   -.15217E-03
  12  norm          .10026E-03    1.8021        .13740E-06** at limit **
  13  norm          1.8068        2.0352       -.19933E-06   -.16939E-03
  14  Prefactor     .10000E-03    42.475       -.20241E-06** at limit **
  15  Prefactor     .10007E-03    4.1544        .17861E-05** at limit **
  16  norm          .47619        1.2479        .48176E-06   -.20567E-04
  17  norm          .10000E-03    1.3656        .18993E-06** at limit **
  18  norm          .10000E-03    1.4620        .15005E-06** at limit **
  19  Prefactor     .10000E-03    24.190        .26607E-06** at limit **
  20  Normalizat    .91649        .21044        .12539E-05   -.34541E-03
  21  Prefactor     .99529        .23249       -.23950E-05   -.18687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 47.5886
  Prefactor  = 125.907
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.42397
  Prefactor  = 4.7382
  Prefactor  = 3.01869
  Prefactor  = 0.430044
  norm       = 0.000100258
  norm       = 1.80682
  Prefactor  = 0.000100001
  Prefactor  = 0.000100069
  norm       = 0.476188
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.916486
  Prefactor  = 0.995288
 **********
 **   18 **HESSE 
 **********

 FCN=   3811.539     FROM HESSE     STATUS=OK           323 CALLS     2567 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8543        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.8375        .14564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          47.589        12.430        .58124E-04   -1.4327    
   5  Prefactor     125.91        169.13        .17929E-03   -1.3459    
   6  norm          .10000E-03    15.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1747        .88312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4240        9.6934        .14718E-03   -1.5163    
   9  Prefactor     4.7382        13.246        .92442E-03   -1.5273    
  10  Prefactor     3.0187        3.9984        .13824E-03   -1.5360    
  11  Prefactor     .43004        61.700        .35344E-02   -1.5577    
  12  norm          .10026E-03    5.7442        .26273E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8068        2.0289        .90512E-04   -1.5439    
  14  Prefactor     .10000E-03    43.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    13.529        .21253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .47619        1.2144        .10658E-03   -1.5570    
  17  norm          .10000E-03    1.4044        .14074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4869        .72874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91649        .24605        .23332E-03   -.95883    
  21  Prefactor     .99529        .27262        .25647E-03   -.92887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2265e-09
Minuit parameter uncertainties:
  1  2.95825e-05
  2  1.34015e-06
  3  3.29919e-05
  4  12.4304
  5  169.786
  6  0.000162029
  7  2.95749e-06
  8  9.69548
  9  13.2545
  10  3.9987
  11  10.3118
  12  0.0024367
  13  2.02893
  14  0.00044084
  15  0.00193364
  16  1.21448
  17  2.49848e-06
  18  3.6763e-07
  19  9.64411e-05
  20  0.246355
  21  0.272997
Done.

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

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  7.424e+00  9.695e+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:  9.953e-01  2.730e-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.165e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 16.215 -24.281
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985390/likelihoodResults_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.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) = 3811.53317299
delta logL = 0.00581009269081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3811.53162595
delta logL = 0.00735713808263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9092       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7104       1.0000          .0000       10.000    
     3 'Normalizat'    .91307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99847       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=   3811.532     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9095        10.452        .15263E-03   -.23150E-03
   2  Index         2.7102        1.0359        .91440E-02   -.45701E-04
   3  Normalizat    .91303        .24049        .23370E-03    .93766E-04
   4  Prefactor     .99850        .27295        .25611E-03    .92929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90951
  Index      = 2.71023
  Normalizat = 0.913032
  Prefactor  = 0.998498
 **********
 **   18 **HESSE 
 **********

 FCN=   3811.532     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9095        10.054        .61053E-05   -1.5182    
   2  Index         2.7102        .99660        .36576E-03   -.47569    
   3  Normalizat    .91303        .24076        .93480E-05   -.96004    
   4  Prefactor     .99850        .27311        .10245E-04   -.92780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37376e-10
Minuit parameter uncertainties:
  1  10.056
  2  1.00515
  3  0.241041
  4  0.273486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985390': 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) = 3811.53162591
delta logL = 0.00735717872021

Extracting fit parameters...

4FGL J0104.8-2416
   Spectrum: PowerLaw
226    Prefactor:  6.910e+00  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
227        Index:  2.710e+00  1.005e+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:  9.985e-01  2.735e-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.130e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
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/985390/cmap_HighResolution_650419201_650678401_4FGL_J0104.8-2416_daily_bin1586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-08-15 00:13:54.853830', job_id='985390', GAL2='1.00', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1629011634.85', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.36e-03', ts2='0.81', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1586' AND source_name='4FGL J0104.8-2416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 00:13:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 985390: <4FGL_J0104.8-2416_daily_bin1586> in cluster <slac> Done

Job <4FGL_J0104.8-2416_daily_bin1586> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 00:00:34 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 00:01:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 00:01:27 2021
Terminated at Sun Aug 15 00:13:58 2021
Results reported at Sun Aug 15 00:13:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0104.8-2416_daily_bin1586 16.2146 -24.2808 650419201 650678401 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 :                                   700.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            804 sec.

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

