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/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 1 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 = 17016
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0112.1+2245_weekly_bin158
RA = 18.0294, Dec = 22.7515
tmin = 334540801, tmax = 335145601
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='85080', job_status='RUN', time_executed='2021-07-03 16:51:37.918956', time_epoch_executed='1625356297.92' WHERE source_name='4FGL J0112.1+2245' and cadence='weekly' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85080

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85080/ft1_4FGL_J0112.1+2245_weekly_bin158.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85080/ft1_4FGL_J0112.1+2245_weekly_bin158.fits outfile=/scratch/kocevski/85080/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin158.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=334540801.0 tmax=335145601.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 7.46
user 7.07
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.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/85080/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin158.fits evtable="EVENTS" outfile="/scratch/kocevski/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.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.68
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/85080/ltcube_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.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/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits
.....................!
real 26.49
user 25.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/85080/ltcube_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits outfile=/scratch/kocevski/85080/expmap_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.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/85080/ltcube_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits
.....................!
real 192.27
user 185.59
sys 5.06

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/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits scfile=/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits outfile=/scratch/kocevski/85080/cmap_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits scfile=/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits outfile=/scratch/kocevski/85080/cmap_HighResolution_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.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.61
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits', '/scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits', expMap='/scratch/kocevski/85080/expmap_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits', expCube='/scratch/kocevski/85080/ltcube_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85080/Model_4FGL_J0112.1+2245_weekly_bin158.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/85080/ft1_filtered_4FGL_J0112.1+2245_weekly_bin158.fits
Spacecraft file(s): /scratch/kocevski/85080/ft2_4FGL_J0112.1+2245_weekly_bin158.fits
Exposure map: /scratch/kocevski/85080/expmap_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits
Exposure cube: /scratch/kocevski/85080/ltcube_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85080/Model_4FGL_J0112.1+2245_weekly_bin158.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) = 15378.8278917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3935       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.860       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .79340       1.0000         .10000E-03   10000.    
    11 'norm      '    .13646       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8555       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .52542       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95736       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15378.80     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2084 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.044         .0000    ** at limit **
   2  Prefactor     2.3933        2.5622         .0000        .16577E-02
   3  norm          .10000E-03    5.3102         .0000    ** at limit **
   4  Prefactor     24.859        17.105         .0000        .50636E-03
   5  norm          5.0297        3.6711         .0000        .27210E-02
   6  Prefactor     .10000E-03    2.0124         .0000    ** at limit **
   7  Prefactor     .10000E-03    2.2215         .0000    ** at limit **
   8  Prefactor     15.358        15.416         .0000        .13423E-03
   9  Prefactor     .10001E-03    7.1189         .0000    ** at limit **
  10  norm          .79338        .34175         .0000        .45189E-03
  11  norm          .13625        .39787         .0000        .48607E-02
  12  Prefactor     12.481        6.7471         .0000        .11218E-03
  13  Prefactor     30.303        19.061         .0000       -.75046E-03
  14  Prefactor     1.8119        2.5555         .0000        .14657E-02
  15  Prefactor     1.8552        3.7266         .0000        .50637E-01
  16  Prefactor     5.5437        7.0398         .0000        .31925E-03
  17  Prefactor     .10000E-03    4.7023         .0000    ** at limit **
  18  Prefactor     .10000E-03    12.914         .0000    ** at limit **
  19  norm          .52540        .30837         .0000        .10698E-02
  20  Prefactor     .10001E-03    7.4179         .0000    ** at limit **
  21  Normalizat    1.0527        .12317         .0000       -.18545E-04
  22  Prefactor     .95734        .79601E-01     .0000       -.43679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 2.39335
  norm       = 0.0001
  Prefactor  = 24.8595
  norm       = 5.02973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3577
  Prefactor  = 0.000100009
  norm       = 0.79338
  norm       = 0.136255
  Prefactor  = 12.4805
  Prefactor  = 30.3029
  Prefactor  = 1.81186
  Prefactor  = 1.85519
  Prefactor  = 5.5437
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.525397
  Prefactor  = 0.000100011
  Normalizat = 1.0527
  Prefactor  = 0.957345
 **********
 **   18 **HESSE 
 **********

 FCN=   15378.80     FROM HESSE     STATUS=OK           342 CALLS     2426 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3933        2.5444        .19057E-03   -1.5399    
   3  norm          .10000E-03    5.4885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.859        17.058        .80341E-04   -1.4710    
   5  norm          5.0297        3.6713        .17930E-03   -1.5259    
   6  Prefactor     .10000E-03    2.0197        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2304        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.358        15.414        .10220E-03   -1.4924    
   9  Prefactor     .10001E-03    7.1299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .79338        .34044        .45677E-04   -1.5530    
  11  norm          .13625        .50668        .12542E-02   -1.5634    
  12  Prefactor     12.481        6.7495        .11339E-03   -1.5001    
  13  Prefactor     30.303        18.993        .72785E-04   -1.4606    
  14  Prefactor     1.8119        2.5234        .22004E-03   -1.5439    
  15  Prefactor     1.8552        3.6763        .15300E-02   -1.5436    
  16  Prefactor     5.5437        7.0362        .17063E-03   -1.5237    
  17  Prefactor     .10000E-03    4.7040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .52540        .31107        .50865E-04   -1.5563    
  20  Prefactor     .10001E-03    7.6822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0527        .14516        .27591E-03   -.91285    
  22  Prefactor     .95734        .94171E-01    .19331E-03   -.94165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97141e-09
Minuit parameter uncertainties:
  1  0.000250146
  2  2.54455
  3  2.68773e-05
  4  17.0614
  5  3.67144
  6  1.09573e-06
  7  2.41551e-06
  8  15.418
  9  0.000494335
  10  0.340444
  11  0.506692
  12  6.74989
  13  18.9963
  14  2.52356
  15  3.67674
  16  7.03728
  17  1.4279e-05
  18  0.0003048
  19  0.311075
  20  0.000591033
  21  0.145217
  22  0.0941869
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  7.934e-01  3.404e-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.573e-01  9.419e-02  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.053e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.03
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.01e-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) = 15378.7679544
delta logL = 0.0325838388799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15378.7664079
delta logL = 0.0341303639852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77621       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9078       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95608       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.

 FCN=   15378.77     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77651        6.7841        .10511E-01    .20140E-03
   2  alpha         1.9081        3.4071        .40314       -.30275E-04
   3  Normalizat    1.0574        .77070E-01    .62265E-01    .38167E-04
   4  Prefactor     .95602        .45047E-01    .45716E-01    .71744E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.776514
  alpha      = 1.90813
  Normalizat = 1.05739
  Prefactor  = 0.956024
 **********
 **   18 **HESSE 
 **********

 FCN=   15378.77     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77651        .35111        .46352E-04   -1.5532    
   2  alpha         1.9081        .37109        .14251E-01   -.23902    
   3  Normalizat    1.0574        .13947        .27540E-03   -.91132    
   4  Prefactor     .95602        .93469E-01    .19345E-03   -.94210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57036e-12
Minuit parameter uncertainties:
  1  0.351111
  2  0.372546
  3  0.139518
  4  0.0934845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85080': 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) = 15378.766407
delta logL = 0.0341311975226

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  7.765e-01  3.511e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  1.908e+00  3.725e-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.560e-01  9.348e-02  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.057e+00  1.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.10
Ra Dec: 18.029 22.752
Photon Index (Free Index): 1.91 +/- 0.37
Photon Flux (Free Index): 3.63e-08 +/- 2.28e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.41e-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/85080/cmap_HighResolution_334540801_335145601_4FGL_J0112.1+2245_weekly_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='2.54e-05', photon_flux_error='1.75e-08', dlogl='3.41e-02', energy_flux='2.35e-05', photon_flux2='3.63e-08', job_status='DONE', time_completed='2021-07-03 17:07:43.603485', photon_index_error2='0.37', photon_index2='1.91', ts='18.03', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.05', time_epoch_completed='1625357263.6', return_code='0', job_id='85080', GAL2='0.96', EG2='1.06', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.28e-08', ts2='18.10', photon_index='2.01' WHERE bin_id='158' AND source_name='4FGL J0112.1+2245' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 17:07:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 85080: <4FGL_J0112.1+2245_weekly_bin158> in cluster <slac> Done

Job <4FGL_J0112.1+2245_weekly_bin158> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  3 16:51:15 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 16:51:16 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:16 2021
Terminated at Sat Jul  3 17:07:44 2021
Results reported at Sat Jul  3 17:07:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_weekly_bin158 18.0294 22.7515 334540801 335145601 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 :                                   955.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

