aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 219 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7394
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1725
RA = 18.2227, Dec = 32.1399
tmin = 686448001, tmax = 686707201
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='875359', job_status='RUN', time_executed='2022-10-06 00:11:27.187014', time_epoch_executed='1665040287.19' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875359/ft1_4FGL_J0112.8+3208_daily_bin1725.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875359/ft1_4FGL_J0112.8+3208_daily_bin1725.fits outfile=/scratch/kocevski/875359/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1725.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=686448001.0 tmax=686707201.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.66
user 4.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.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/875359/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1725.fits evtable="EVENTS" outfile="/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.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.34
sys 0.16

Number of photons that the gtmktime cut: 510

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits" evtable="EVENTS" scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits sctable="SC_DATA" outfile=/scratch/kocevski/875359/ltcube_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.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/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits
.....................!
real 12.70
user 12.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits sctable="SC_DATA" expcube=/scratch/kocevski/875359/ltcube_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits outfile=/scratch/kocevski/875359/expmap_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.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/875359/ltcube_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits
.....................!
real 191.44
user 185.28
sys 5.72

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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0112.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits outfile=/scratch/kocevski/875359/cmap_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.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=18.2227 yref=32.1399 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits outfile=/scratch/kocevski/875359/cmap_HighResolution_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.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=18.2227 yref=32.1399 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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits evtable="EVENTS" scfile=/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875359/Model_4FGL_J0112.8+3208_daily_bin1725.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/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits.....................!
real 58.75
user 57.34
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits', '/scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits', expMap='/scratch/kocevski/875359/expmap_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits', expCube='/scratch/kocevski/875359/ltcube_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875359/Model_4FGL_J0112.8+3208_daily_bin1725.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875359/ft1_filtered_4FGL_J0112.8+3208_daily_bin1725.fits
Spacecraft file(s): /scratch/kocevski/875359/ft2_4FGL_J0112.8+3208_daily_bin1725.fits
Exposure map: /scratch/kocevski/875359/expmap_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits
Exposure cube: /scratch/kocevski/875359/ltcube_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875359/Model_4FGL_J0112.8+3208_daily_bin1725.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) = 5350.81371526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33699       1.0000          .0000       .10000E+07
     2 'norm      '    5.8233       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.9041       1.0000          .0000       .10000E+07
     4 'Prefactor '    .45018E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.3957       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.9067       1.0000          .0000       .10000E+07
     7 'Prefactor '    .29918E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.2098       1.0000          .0000       .10000E+07
     9 'norm      '    4.0026       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.5970       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17153E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .67825E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .10547E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20866E-02   1.0000          .0000       .10000E+07
    15 'norm      '    1.2728       1.0000          .0000       .10000E+07
    16 'Prefactor '    .41222E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .66294       1.0000          .0000       .10000E+07
    18 'Prefactor '    .44120E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .30138E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    24.513       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3301       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76369       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5349.997     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1372 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11052E-04    52.900        .59601E-06** at limit **
   2  norm          5.8200        2.8545        .41711E-07    .99928E-03
   3  Prefactor     6.9804        8.2684        .22154E-06    .57526E-03
   4  Prefactor     .94064E-06    10.242        .35440E-06** at limit **
   5  Prefactor     7.3355        5.4720       -.22985E-06   -.15296E-01
   6  Prefactor     7.6499        9.4815       -.33875E-06    .10233E-01
   7  Prefactor     .10020E-06    11.982        .13677E-06** at limit **
   8  norm          1.2096        .66600        .29850E-07    .10455E-02
   9  norm          4.0026        1.6504       -.53396E-07   -.18414E-02
  10  Prefactor     8.2206        1.5730        .22623E-07   -.13200E-02
  11  Prefactor     .49960E-09    3.6269        .80003E-08** at limit **
  12  Prefactor     .28708E-05    15.984       -.47801E-08** at limit **
  13  norm           .0000        1.7089        .16735E-06** at limit **
  14  Prefactor     .16056E-05    15.159        .27127E-06** at limit **
  15  norm          1.2716        .76127       -.45874E-07    .56543E-03
  16  Prefactor     .29986E-05    47.684       -.17032E-05** at limit **
  17  Prefactor     .64793        7.8603        .10474E-06    .66843E-03
  18  Prefactor     .38122E-05    25.983       -.67201E-06** at limit **
  19  norm           .0000        2.0605        .13140E-06** at limit **
  20  Prefactor     24.564        10.551        .81424E-07    .65431E-02
  21  Normalizat    1.3314        .26577        .60972E-06    .62837E-04
  22  Prefactor     .76371        .15937        .14535E-05    .85766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10519e-05
  norm       = 5.82
  Prefactor  = 6.98043
  Prefactor  = 9.40636e-07
  Prefactor  = 7.33546
  Prefactor  = 7.64995
  Prefactor  = 1.00198e-07
  norm       = 1.20962
  norm       = 4.00257
  Prefactor  = 8.22064
  Prefactor  = 4.996e-10
  Prefactor  = 2.87081e-06
  norm       = 0
  Prefactor  = 1.6056e-06
  norm       = 1.27158
  Prefactor  = 2.9986e-06
  Prefactor  = 0.647929
  Prefactor  = 3.81223e-06
  norm       = 0
  Prefactor  = 24.5641
  Normalizat = 1.33144
  Prefactor  = 0.763707
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.997     FROM HESSE     STATUS=OK           392 CALLS     1764 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11052E-04    71.622        .97182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8200        2.8569        .41594E-03   -1.5660    
   3  Prefactor     6.9804        8.2735        .38159E-03   -1.5655    
   4  Prefactor     .94064E-06    28.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3355        10.539        .36856E-03   -1.5654    
   6  Prefactor     7.6499        10.586        .35635E-03   -1.5653    
   7  Prefactor     .10020E-06    12.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2096        .66471        .97259E-03   -1.5686    
   9  norm          4.0026        1.6529        .50385E-03   -1.5668    
  10  Prefactor     8.2206        23.158        .34164E-03   -1.5651    
  11  Prefactor     .49960E-09    3.6263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28708E-05    27.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.6503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16056E-05    19.461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2716        .76446        .98528E-03   -1.5685    
  16  Prefactor     .29986E-05    52.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .64793        7.7638        .63769E-03   -1.5692    
  18  Prefactor     .38122E-05    35.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        2.0578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.564        10.782        .20202E-03   -1.5609    
  21  Normalizat    1.3314        .22530        .60112E-01   -.82633    
  22  Prefactor     .76371        .13526        .43243E-01   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33995e-07
Minuit parameter uncertainties:
  1  0.0562701
  2  2.85685
  3  8.27349
  4  0.0103624
  5  10.5388
  6  10.5859
  7  0.00221731
  8  0.664713
  9  1.65291
  10  23.1584
  11  8.66168e-05
  12  0.0178713
  13  5.76677e-06
  14  0.0111799
  15  0.764457
  16  0.025062
  17  4.48572
  18  0.0234042
  19  1.70661e-06
  20  10.7815
  21  0.225465
  22  0.135314
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  4.003e+00  1.653e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.637e-01  1.353e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.331e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.27
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 3.97e-05 +/- 1.64e-05

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) = 5349.81830821
delta logL = 0.178836007558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5349.81791375
delta logL = 0.17923046863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7093       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77266       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5349.818     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      233 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7093        29.845        .52409E-03    .88515E-02
   2  alpha         2.5071        3.5623        .24952        .18934E-04
   3  Normalizat    1.3094        .20070        .60514E-01    .10483E-05
   4  Prefactor     .77260        .11682        .43360E-01    .56104E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.70934
  alpha      = 2.50708
  Normalizat = 1.30942
  Prefactor  = 0.772605
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.818     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7093        1.6669        .54020E-05   -1.5669    
   2  alpha         2.5071        .44225        .10500E-01    .28315E-02
   3  Normalizat    1.3094        .25858        .26764E-03   -.83286    
   4  Prefactor     .77260        .15943        .21009E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62046e-10
Minuit parameter uncertainties:
  1  1.66692
  2  0.444594
  3  0.258836
  4  0.15953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875359': 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) = 5349.81791368
delta logL = 0.179230538693

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  3.709e+00  1.667e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.507e+00  4.446e-01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.726e-01  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.309e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.60
Ra Dec: 18.223 32.140
Photon Index (Free Index): 2.51 +/- 0.44
Photon Flux (Free Index): 1.28e-07 +/- 5.74e-08
Energy Flux (Free Index): 3.53e-05 +/- 1.54e-05

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/875359/cmap_HighResolution_686448001_686707201_4FGL_J0112.8+3208_daily_bin1725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.53e-05', photon_flux_error='4.56e-08', dlogl='1.79e-01', energy_flux='3.97e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2022-10-06 00:19:43.327307', photon_index_error2='0.44', photon_index2='2.51', ts='15.27', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.33', time_epoch_completed='1665040783.33', return_code='0', job_id='875359', GAL2='0.77', EG2='1.31', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='5.74e-08', ts2='15.60', photon_index='2.25' WHERE bin_id='1725' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct  6 00:19:43 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 875351: <4FGL_J0112.8+3208_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1725> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:48 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:07:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:07:40 2022
Terminated at Thu Oct  6 00:16:41 2022
Results reported at Thu Oct  6 00:16:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1725 18.2227 32.1399 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   498.00 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             324.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            653 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 875359: <4FGL_J0112.8+3208_daily_bin1725> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1725> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct  6 00:05:49 2022
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct  6 00:07:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct  6 00:07:40 2022
Terminated at Thu Oct  6 00:19:44 2022
Results reported at Thu Oct  6 00:19:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1725 18.2227 32.1399 686448001 686707201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   498.60 sec.
    Max Memory :                                 1139 MB
    Average Memory :                             233.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            835 sec.

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

