aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 17363
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0112.1+2245_weekly_bin346
RA = 18.0294, Dec = 22.7515
tmin = 448243201, tmax = 448848001
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='85434', job_status='RUN', time_executed='2021-07-03 16:53:51.248749', time_epoch_executed='1625356431.25' WHERE source_name='4FGL J0112.1+2245' and cadence='weekly' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85434

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85434/ft1_4FGL_J0112.1+2245_weekly_bin346.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85434/ft1_4FGL_J0112.1+2245_weekly_bin346.fits outfile=/scratch/kocevski/85434/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin346.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=448243201.0 tmax=448848001.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.61
user 9.40
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.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/85434/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.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 1.30
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/85434/ltcube_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.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/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits
.....................!
real 21.51
user 20.35
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/85434/ltcube_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits outfile=/scratch/kocevski/85434/expmap_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.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/85434/ltcube_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits
.....................!
real 160.48
user 149.53
sys 4.03

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.1+2245 @ 18.0294 22.7515

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits outfile=/scratch/kocevski/85434/cmap_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.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.0294 yref=22.7515 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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits outfile=/scratch/kocevski/85434/cmap_HighResolution_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.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.0294 yref=22.7515 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.51
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85434/Model_4FGL_J0112.1+2245_weekly_bin346.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/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits.....................!
real 63.27
user 61.86
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits', '/scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits', expMap='/scratch/kocevski/85434/expmap_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits', expCube='/scratch/kocevski/85434/ltcube_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85434/Model_4FGL_J0112.1+2245_weekly_bin346.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.1+2245'

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/85434/ft1_filtered_4FGL_J0112.1+2245_weekly_bin346.fits
Spacecraft file(s): /scratch/kocevski/85434/ft2_4FGL_J0112.1+2245_weekly_bin346.fits
Exposure map: /scratch/kocevski/85434/expmap_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits
Exposure cube: /scratch/kocevski/85434/ltcube_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85434/Model_4FGL_J0112.1+2245_weekly_bin346.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) = 7606.91718061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .90780       1.0000         .10000E-03   10000.    
     3 'norm      '    10.432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.532       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9255       1.0000         .10000E-03   10000.    
    11 'norm      '    .26251E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5285       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.219       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2677       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2772       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.862       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1536       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7606.914     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2378 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.390       -.14953E-05** at limit **
   2  Prefactor     .90994        3.2522       -.52809E-06   -.12512E-02
   3  norm          10.432        8.9217        .13750E-06    .17850E-04
   4  Prefactor     51.524        35.976       -.51672E-05    .32612E-03
   5  norm          .10000E-03    5.3705        .12431E-06** at limit **
   6  Prefactor     .10000E-03    8.1101       -.24098E-06** at limit **
   7  Prefactor     9.0302        11.664       -.36268E-06   -.20142E-04
   8  Prefactor     .10000E-03    16.517       -.44058E-06** at limit **
   9  Prefactor     .10000E-03    24.423        .35591E-06** at limit **
  10  norm          1.9255        .74120       -.29156E-07   -.12020E-03
  11  norm          .27607E-01    .53494       -.70891E-09    .54042E-03
  12  Prefactor     8.5288        9.2363       -.80275E-07   -.53766E-04
  13  Prefactor     .10000E-03    11.535        .18942E-05** at limit **
  14  Prefactor     2.7291        2.7927        .25498E-07    .17671E-03
  15  Prefactor     2.4861        6.3494       -.32504E-05   -.35588E-03
  16  Prefactor     17.217        11.802       -.10792E-06   -.10791E-04
  17  Prefactor     8.2668        22.200       -.81615E-06   -.70022E-05
  18  Prefactor     .10000E-03    52.575       -.25852E-07** at limit **
  19  norm          2.2770        .72300       -.38505E-07    .17999E-03
  20  Prefactor     13.862        8.9679       -.66592E-07   -.44103E-04
  21  Normalizat    1.1536        .19826        .16132E-05    .27958E-05
  22  Prefactor     .96736        .12599        .70965E-07    .11811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.909936
  norm       = 10.4323
  Prefactor  = 51.5243
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.03023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92551
  norm       = 0.0276072
  Prefactor  = 8.52882
  Prefactor  = 0.0001
  Prefactor  = 2.72911
  Prefactor  = 2.48611
  Prefactor  = 17.2175
  Prefactor  = 8.26681
  Prefactor  = 0.0001
  norm       = 2.27697
  Prefactor  = 13.862
  Normalizat = 1.15362
  Prefactor  = 0.967356
 **********
 **   18 **HESSE 
 **********

 FCN=   7606.914     FROM HESSE     STATUS=OK           350 CALLS     2728 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .90994        3.4724        .29781E-03   -1.5517    
   3  norm          10.432        8.9226        .12405E-03   -1.5062    
   4  Prefactor     51.524        32.524        .55868E-04   -1.4271    
   5  norm          .10000E-03    5.4145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0302        11.672        .13338E-03   -1.5107    
   8  Prefactor     .10000E-03    16.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9255        .73941        .44608E-04   -1.5430    
  11  norm          .27607E-01    11.440        .11835E-02   -1.5675    
  12  Prefactor     8.5288        9.2389        .13727E-03   -1.5124    
  13  Prefactor     .10000E-03    11.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7291        2.7985        .14327E-03   -1.5378    
  15  Prefactor     2.4861        6.7163        .25930E-03   -1.5393    
  16  Prefactor     17.217        11.806        .96520E-04   -1.4878    
  17  Prefactor     8.2668        22.224        .13943E-03   -1.5133    
  18  Prefactor     .10000E-03    52.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2770        .72265        .40235E-04   -1.5406    
  20  Prefactor     13.862        8.9754        .10758E-03   -1.4963    
  21  Normalizat    1.1536        .23389        .29733E-03   -.88049    
  22  Prefactor     .96736        .14931        .21073E-03   -.93826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82066e-09
Minuit parameter uncertainties:
  1  5.80011e-05
  2  3.4732
  3  8.92377
  4  32.535
  5  6.8989e-07
  6  1.13767e-05
  7  11.6744
  8  1.49642e-05
  9  2.99731e-05
  10  0.739413
  11  1.12215
  12  9.2404
  13  7.565e-05
  14  2.79861
  15  6.71832
  16  11.8076
  17  22.2463
  18  1.73543e-06
  19  0.722653
  20  8.97627
  21  0.2341
  22  0.149373
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.926e+00  7.394e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.006e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.674e-01  1.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.154e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.12
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.88e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 5.70e-05 +/- 2.19e-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) = 7606.91057383
delta logL = 0.00337543997375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7606.9104411
delta logL = 0.00350817240906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9210       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0317       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+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=   7606.910     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      225 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9210        .73578        .44313E-04    .48823E-03
   2  alpha         2.0317        .31066        .97801E-02    .20403E-04
   3  Normalizat    1.1510        .22623        .29761E-03    .20200E-03
   4  Prefactor     .96823        .14776        .21064E-03    .27191E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.921
  alpha      = 2.03172
  Normalizat = 1.15101
  Prefactor  = 0.968225
 **********
 **   18 **HESSE 
 **********

 FCN=   7606.910     FROM HESSE     STATUS=OK            25 CALLS      250 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9210        .73407        .17725E-05   -1.5431    
   2  alpha         2.0317        .30983        .39120E-03   -.18842    
   3  Normalizat    1.1510        .22640        .11904E-04   -.88130    
   4  Prefactor     .96823        .14788        .42128E-04   -.93796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38778e-11
Minuit parameter uncertainties:
  1  0.734075
  2  0.310657
  3  0.226594
  4  0.147939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85434': 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) = 7606.9104411
delta logL = 0.00350817784147

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.921e+00  7.341e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.032e+00  3.107e-01  0.000e+00  5.000e+00 ( 1.000e+00)
250         beta:  5.709e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
251           Eb:  7.553e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
525    Prefactor:  9.682e-01  1.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
526        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
527        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
524   Normalization:  1.151e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.08
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.03 +/- 0.31
Photon Flux (Free Index): 1.01e-07 +/- 4.81e-08
Energy Flux (Free Index): 5.57e-05 +/- 2.65e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/85434/cmap_HighResolution_448243201_448848001_4FGL_J0112.1+2245_weekly_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.88e-08', energy_flux2='5.57e-05', photon_flux_error='3.79e-08', dlogl='3.51e-03', energy_flux='5.70e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-07-03 17:03:45.910248', photon_index_error2='0.31', photon_index2='2.03', ts='24.12', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.15', time_epoch_completed='1625357025.91', return_code='0', job_id='85434', GAL2='0.97', EG2='1.15', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='4.81e-08', ts2='24.08', photon_index='2.01' WHERE bin_id='346' AND source_name='4FGL J0112.1+2245' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 17:03:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 85434: <4FGL_J0112.1+2245_weekly_bin346> in cluster <slac> Done

Job <4FGL_J0112.1+2245_weekly_bin346> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  3 16:51:49 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 16:51:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 16:51:50 2021
Terminated at Sat Jul  3 17:03:46 2021
Results reported at Sat Jul  3 17:03:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_weekly_bin346 18.0294 22.7515 448243201 448848001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.1+2245 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   568.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

