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


Performing analysis on: 4FGL_J0112.8+3208_weekly_bin741
RA = 18.2227, Dec = 32.1399
tmin = 687139201, tmax = 687744001
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='378975', job_status='RUN', time_executed='2022-10-18 00:37:20.284219', time_epoch_executed='1666078640.28' WHERE source_name='4FGL J0112.8+3208' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378975

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378975/ft1_4FGL_J0112.8+3208_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378975/ft1_4FGL_J0112.8+3208_weekly_bin741.fits outfile=/scratch/kocevski/378975/ft1_filteredMKT_4FGL_J0112.8+3208_weekly_bin741.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.63
user 6.29
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.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/378975/ft1_filteredMKT_4FGL_J0112.8+3208_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/378975/ft1_filtered_4FGL_J0112.8+3208_weekly_bin741.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 365

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378975/ft1_filtered_4FGL_J0112.8+3208_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/378975/ltcube_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.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/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits
.....................!
real 28.00
user 27.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378975/ft1_filtered_4FGL_J0112.8+3208_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/378975/ltcube_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.fits outfile=/scratch/kocevski/378975/expmap_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.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/378975/ltcube_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.fits
.....................!
real 191.57
user 185.54
sys 5.29

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/378975/ft1_filtered_4FGL_J0112.8+3208_weekly_bin741.fits scfile=/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits outfile=/scratch/kocevski/378975/cmap_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378975/ft1_filtered_4FGL_J0112.8+3208_weekly_bin741.fits scfile=/scratch/kocevski/378975/ft2_4FGL_J0112.8+3208_weekly_bin741.fits outfile=/scratch/kocevski/378975/cmap_HighResolution_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.656       1.0000          .0000       .10000E+07
     2 'norm      '    2.3843       1.0000          .0000       .10000E+07
     3 'Prefactor '    .98921E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73830E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14680E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    16.703       1.0000          .0000       .10000E+07
     7 'Prefactor '    32.619       1.0000          .0000       .10000E+07
     8 'norm      '    1.2637       1.0000          .0000       .10000E+07
     9 'norm      '    7.0174       1.0000          .0000       .10000E+07
    10 'Prefactor '    .81102E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20428E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    47.820       1.0000          .0000       .10000E+07
    13 'norm      '    2.3447       1.0000          .0000       .10000E+07
    14 'Prefactor '    .87230E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .16320E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .89941E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16653E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21649E-08   1.0000          .0000       .10000E+07
    19 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
    20 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0504       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=   3856.902     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2143 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.680        14.491        .20954E-06    .15223    
   2  norm          2.3842        2.6745       -.10379E-07   -.46068E-04
   3  Prefactor      .0000        10.360        .38494E-06** at limit **
   4  Prefactor      .0000        2.3148        .27457E-07** at limit **
   5  Prefactor     .12362E-06    237.44       -.33244E-05** at limit **
   6  Prefactor     16.700        13.256        .77915E-07   -.31909E-02
   7  Prefactor     32.627        22.227       -.34533E-06    .10038    
   8  norm          1.2636        .96659        .32874E-08   -.23041E-03
   9  norm          7.0179        3.0658       -.14452E-09   -.34672E-03
  10  Prefactor     .43299E-08    28.497       -.79661E-07** at limit **
  11  Prefactor      .0000        3.2147        .11060E-06** at limit **
  12  Prefactor     47.823        22.587       -.41289E-06   -.68950E-02
  13  norm          2.3448        2.0888        .20611E-07   -.95718E-04
  14  Prefactor     .20974E-05    978.50       -.48454E-05** at limit **
  15  norm           .0000        .31943       -.57337E-08** at limit **
  16  Prefactor     .23870E-07    53.867        .78031E-06** at limit **
  17  Prefactor      .0000        1.7190       -.15274E-07** at limit **
  18  Prefactor     .55511E-10    13.935       -.83726E-07** at limit **
  19  norm           .0000        1.3638        .39610E-07** at limit **
  20  Prefactor      .0000        2.5882        .49543E-07** at limit **
  21  Normalizat    1.0101        .32717        .66282E-05   -.20826E-04
  22  Prefactor     1.0506        .20356       -.15427E-05   -.25774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6796
  norm       = 2.38415
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.23623e-07
  Prefactor  = 16.7005
  Prefactor  = 32.6266
  norm       = 1.26363
  norm       = 7.01794
  Prefactor  = 4.32987e-09
  Prefactor  = 0
  Prefactor  = 47.8228
  norm       = 2.34481
  Prefactor  = 2.09738e-06
  norm       = 0
  Prefactor  = 2.38698e-08
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.01014
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.902     FROM HESSE     STATUS=OK           380 CALLS     2523 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.680        32.506        .17776E-03   -1.5595    
   2  norm          2.3842        2.6800        .66308E-03   -1.5677    
   3  Prefactor      .0000        10.376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.3147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12362E-06    231.65        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.700        13.322        .24479E-03   -1.5626    
   7  Prefactor     32.627        24.763        .17512E-03   -1.5594    
   8  norm          1.2636        .96729        .99101E-03   -1.5685    
   9  norm          7.0179        3.0523        .37846E-03   -1.5655    
  10  Prefactor     .43299E-08    28.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        3.2235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.823        22.596        .14462E-03   -1.5570    
  13  norm          2.3448        2.0958        .66924E-03   -1.5677    
  14  Prefactor     .20974E-05    975.31        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .31689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23870E-07    53.942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.7231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    13.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.3645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.5892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0101        .28383        .72747E-01   -.92691    
  22  Prefactor     1.0506        .17613        .39888E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65223e-07
Minuit parameter uncertainties:
  1  32.5066
  2  2.67998
  3  9.63883e-06
  4  6.62903e-07
  5  0.0107022
  6  13.3216
  7  24.7626
  8  0.967286
  9  3.05234
  10  0.000703564
  11  7.7448e-06
  12  22.5963
  13  2.0958
  14  0.0904712
  15  1.18059e-07
  16  0.00227006
  17  2.05332e-06
  18  6.80343e-05
  19  1.32754e-07
  20  1.77335e-06
  21  0.284257
  22  0.176231
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  7.018e+00  3.052e+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.051e+00  1.762e-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.010e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.27
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 8.41e-08
Energy Flux (Fixed Index): 6.95e-05 +/- 3.02e-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) = 3855.7078199
delta logL = 1.19438973376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3855.70728799
delta logL = 1.19492164435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7458       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9295       1.0000          .0000       5.0000    
     3 'Normalizat'    .87234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1022       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3855.707     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      269 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7459        2.8491        .48659E-05    .60793E-02
   2  alpha         2.9295        .46241        .74794E-03    .24814E-04
   3  Normalizat    .87234        .33054        .34206E-03   -.32405E-05
   4  Prefactor     1.1022        .20604        .19719E-03   -.78984E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74588
  alpha      = 2.92947
  Normalizat = 0.872339
  Prefactor  = 1.10218
 **********
 **   18 **HESSE 
 **********

 FCN=   3855.707     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7459        2.8360        .19464E-06   -1.5660    
   2  alpha         2.9295        .46030        .29918E-04    .17265    
   3  Normalizat    .87234        .33081        .13682E-04   -.97439    
   4  Prefactor     1.1022        .20620        .78877E-05   -.89397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73177e-11
Minuit parameter uncertainties:
  1  2.836
  2  0.463021
  3  0.331578
  4  0.206345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378975': 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) = 3855.70728799
delta logL = 1.19492164447

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  5.746e+00  2.836e+00  0.000e+00  1.000e+06 ( 1.000e-11)
244        alpha:  2.929e+00  4.630e-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.102e+00  2.063e-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:  8.723e-01  3.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.05
Ra Dec: 18.223 32.140
Photon Index (Free Index): 2.93 +/- 0.46
Photon Flux (Free Index): 3.03e-07 +/- 1.17e-07
Energy Flux (Free Index): 6.33e-05 +/- 2.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/378975/cmap_HighResolution_687139201_687744001_4FGL_J0112.8+3208_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='6.33e-05', photon_flux_error='8.41e-08', dlogl='1.19e+00', energy_flux='6.95e-05', photon_flux2='3.03e-07', job_status='DONE', time_completed='2022-10-18 00:45:51.548985', photon_index_error2='0.46', photon_index2='2.93', ts='11.27', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.01', time_epoch_completed='1666079151.55', return_code='0', job_id='378975', GAL2='1.10', EG2='0.87', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='1.17e-07', ts2='14.05', photon_index='2.25' WHERE bin_id='741' AND source_name='4FGL J0112.8+3208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:45:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 378975: <4FGL_J0112.8+3208_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0112.8+3208_weekly_bin741> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:49 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:51 2022
Terminated at Tue Oct 18 00:45:52 2022
Results reported at Tue Oct 18 00:45:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_weekly_bin741 18.2227 32.1399 687139201 687744001 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 :                                   512.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            603 sec.

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

