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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1740
RA = 18.2227, Dec = 32.1399
tmin = 690336001, tmax = 690595201
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='822666', job_status='RUN', time_executed='2022-11-20 00:10:22.564236', time_epoch_executed='1668931822.56' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822666/ft1_4FGL_J0112.8+3208_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822666/ft1_4FGL_J0112.8+3208_daily_bin1740.fits outfile=/scratch/kocevski/822666/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1740.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.99
user 2.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822666/ltcube_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.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/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits
.....................!
real 15.62
user 15.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822666/ltcube_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits outfile=/scratch/kocevski/822666/expmap_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.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/822666/ltcube_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits
.....................!
real 193.23
user 186.81
sys 4.80

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/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits scfile=/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits outfile=/scratch/kocevski/822666/cmap_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits scfile=/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits outfile=/scratch/kocevski/822666/cmap_HighResolution_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits', '/scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits', expMap='/scratch/kocevski/822666/expmap_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits', expCube='/scratch/kocevski/822666/ltcube_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822666/Model_4FGL_J0112.8+3208_daily_bin1740.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/822666/ft1_filtered_4FGL_J0112.8+3208_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822666/ft2_4FGL_J0112.8+3208_daily_bin1740.fits
Exposure map: /scratch/kocevski/822666/expmap_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822666/ltcube_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822666/Model_4FGL_J0112.8+3208_daily_bin1740.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) = 4014.58614719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.919       1.0000          .0000       .10000E+07
     2 'norm      '    .70444E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    33.175       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22798E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1893       1.0000          .0000       .10000E+07
     6 'Prefactor '    .67635E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    13.376       1.0000          .0000       .10000E+07
     8 'norm      '    3.2349       1.0000          .0000       .10000E+07
     9 'norm      '    8.4130       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.9279       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13495E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23080E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .99143E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.9556       1.0000          .0000       .10000E+07
    15 'norm      '    .21371E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .31652E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .76343E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23186E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .12828E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    17.841       1.0000          .0000       .10000E+07
    21 'Normalizat'    .33335       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4553       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=   4014.580     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1793 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.408        6.7254        .51586E-06   -.18285E-01
   2  norm           .0000        1.8484        .59497E-08** at limit **
   3  Prefactor     33.216        11.498        .14725E-05   -.93428E-02
   4  Prefactor      .0000        3.6524       -.11981E-07** at limit **
   5  Prefactor     1.2370        66.416       -.85875E-05   -.54562E-03
   6  Prefactor     .55511E-10    16.847       -.71649E-06** at limit **
   7  Prefactor     13.500        8.4529       -.13650E-05    .64899E-02
   8  norm          3.2333        1.3193        .63246E-07   -.28459E-03
   9  norm          8.4145        3.0170        .20475E-06    .25738E-02
  10  Prefactor     4.0289        141.01        .44590E-05    .54326E-03
  11  Prefactor     .14988E-08    37.210        .23883E-05** at limit **
  12  Prefactor     .33307E-09    14.638        .10039E-05** at limit **
  13  norm           .0000        1.1469       -.95693E-07** at limit **
  14  Prefactor     7.3607        141.39        .13146E-04    .58549E-04
  15  norm           .0000        1.3531        .23656E-06** at limit **
  16  Prefactor     .55511E-10    10.743       -.35171E-06** at limit **
  17  Prefactor      .0000        2.1750        .26116E-06** at limit **
  18  Prefactor     .16653E-09    27.276       -.34701E-06** at limit **
  19  norm           .0000        6.8233        .16500E-06** at limit **
  20  Prefactor     17.955        18.175       -.27666E-05   -.90667E-02
  21  Normalizat    .33345        .34808        .17055E-04    .12506E-04
  22  Prefactor     1.4541        .22450       -.28405E-05   -.15644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.408
  norm       = 0
  Prefactor  = 33.2157
  Prefactor  = 0
  Prefactor  = 1.23699
  Prefactor  = 5.55112e-11
  Prefactor  = 13.4998
  norm       = 3.23329
  norm       = 8.41448
  Prefactor  = 4.02893
  Prefactor  = 1.4988e-09
  Prefactor  = 3.33067e-10
  norm       = 0
  Prefactor  = 7.3607
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 17.9551
  Normalizat = 0.333452
  Prefactor  = 1.45413
 **********
 **   18 **HESSE 
 **********

 FCN=   4014.580     FROM HESSE     STATUS=OK           386 CALLS     2179 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.408        33.518        .22999E-03   -1.5620    
   2  norm           .0000        1.8343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.216        24.956        .17364E-03   -1.5593    
   4  Prefactor      .0000        3.6537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2370        67.855        .10446E-02   -1.5686    
   6  Prefactor     .55511E-10    16.740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.500        24.161        .27362E-03   -1.5634    
   8  norm          3.2333        1.3283        .56293E-03   -1.5672    
   9  norm          8.4145        3.0550        .34538E-03   -1.5650    
  10  Prefactor     4.0289        145.48        .59341E-03   -1.5668    
  11  Prefactor     .14988E-08    37.063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33307E-09    14.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.1438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3607        139.84        .41123E-03   -1.5654    
  15  norm           .0000        1.3186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    10.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.1772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16653E-09    27.247        .16835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        6.8194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.955        22.908        .23684E-03   -1.5623    
  21  Normalizat    .33345        .41900        .12618       -1.2090    
  22  Prefactor     1.4541        .25494        .30339E-01   -.78833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00409e-07
Minuit parameter uncertainties:
  1  33.5183
  2  1.41806e-05
  3  24.9556
  4  1.81931e-05
  5  18.3235
  6  4.6238e-05
  7  24.1616
  8  1.32829
  9  3.055
  10  48.422
  11  0.000467479
  12  0.000139398
  13  6.39524e-06
  14  64.1681
  15  4.76308e-06
  16  4.13282e-05
  17  5.54638e-06
  18  0.000125231
  19  1.26123e-05
  20  22.9081
  21  0.423024
  22  0.255163
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  8.414e+00  3.055e+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:  1.454e+00  2.552e-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:  3.335e-01  4.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.29
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.32e-07 +/- 8.42e-08
Energy Flux (Fixed Index): 8.34e-05 +/- 3.03e-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) = 4013.62656991
delta logL = 0.953880386246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4013.56112104
delta logL = 1.01932926009

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3829       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7428       1.0000          .0000       5.0000    
     3 'Normalizat'    .42862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4190       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=   4013.561     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3838        2.9455        .36888E-03    .51908E-02
   2  alpha         1.7427        .29583        .17316       -.16467E-03
   3  Normalizat    .42795        .35044        .11193       -.13525E-03
   4  Prefactor     1.4193        .22243        .30804E-01   -.44606E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.38383
  alpha      = 1.74268
  Normalizat = 0.427948
  Prefactor  = 1.41932
 **********
 **   18 **HESSE 
 **********

 FCN=   4013.561     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3838        3.3787        .63944E-05   -1.5654    
   2  alpha         1.7427        .35213        .73692E-02   -.30776    
   3  Normalizat    .42795        .35107        .49612E-03   -1.1588    
   4  Prefactor     1.4193        .22321        .18195E-03   -.79825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65447e-10
Minuit parameter uncertainties:
  1  3.3787
  2  0.353422
  3  0.352899
  4  0.223359
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822666': 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) = 4013.56111876
delta logL = 1.01933154589

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  7.384e+00  3.379e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  1.743e+00  3.534e-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:  1.419e+00  2.234e-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:  4.279e-01  3.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.20
Ra Dec: 18.223 32.140
Photon Index (Free Index): 1.74 +/- 0.35
Photon Flux (Free Index): 1.49e-07 +/- 8.08e-08
Energy Flux (Free Index): 1.29e-04 +/- 7.30e-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/822666/cmap_HighResolution_690336001_690595201_4FGL_J0112.8+3208_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-07', energy_flux2='1.29e-04', photon_flux_error='8.42e-08', dlogl='1.02e+00', energy_flux='8.34e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2022-11-20 00:18:02.922814', photon_index_error2='0.35', photon_index2='1.74', ts='30.29', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', energy_flux_error2='7.30e-05', EG='0.33', time_epoch_completed='1668932282.92', return_code='0', job_id='822666', GAL2='1.42', EG2='0.43', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='8.08e-08', ts2='32.20', photon_index='2.25' WHERE bin_id='1740' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:18:02 PST 2022

------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 822811: <4FGL_J0112.8+3208_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:15 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:08:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:08:48 2022
Terminated at Sun Nov 20 00:17:54 2022
Results reported at Sun Nov 20 00:17:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1740 18.2227 32.1399 690336001 690595201 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 :                                   459.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            759 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 822666: <4FGL_J0112.8+3208_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:04 2022
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:06:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:06:47 2022
Terminated at Sun Nov 20 00:18:03 2022
Results reported at Sun Nov 20 00:18:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1740 18.2227 32.1399 690336001 690595201 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 :                                   460.47 sec.
    Max Memory :                                 1092 MB
    Average Memory :                             286.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            779 sec.

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

