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 4 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 = 17195
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0112.1+2245_weekly_bin637
RA = 18.0294, Dec = 22.7515
tmin = 624240001, tmax = 624844801
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='89733', job_status='RUN', time_executed='2021-07-03 17:05:55.182988', time_epoch_executed='1625357155.18' WHERE source_name='4FGL J0112.1+2245' and cadence='weekly' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89733

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89733/ft1_4FGL_J0112.1+2245_weekly_bin637.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89733/ft1_4FGL_J0112.1+2245_weekly_bin637.fits outfile=/scratch/kocevski/89733/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin637.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=624240001.0 tmax=624844801.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.17
user 5.88
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.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/89733/ft1_filteredMKT_4FGL_J0112.1+2245_weekly_bin637.fits evtable="EVENTS" outfile="/scratch/kocevski/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/89733/ltcube_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.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/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits
.....................!
real 24.69
user 24.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/89733/ltcube_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.fits outfile=/scratch/kocevski/89733/expmap_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.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/89733/ltcube_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.fits
.....................!
real 156.09
user 151.59
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/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits outfile=/scratch/kocevski/89733/cmap_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits outfile=/scratch/kocevski/89733/cmap_HighResolution_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.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/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/89733/ft2_4FGL_J0112.1+2245_weekly_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89733/Model_4FGL_J0112.1+2245_weekly_bin637.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/89733/ft1_filtered_4FGL_J0112.1+2245_weekly_bin637.fits.....................!
real 145.42
user 143.59
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    82.594       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.9713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.330       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3110       1.0000         .10000E-03   10000.    
    11 'norm      '    .98560       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12454E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11854E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9043       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34916E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99667       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1135       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18891.52     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     2037 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.823        .35253E-06** at limit **
   2  Prefactor     82.592        2.5654        .12559E-06   -.32966E-01
   3  norm          3.7824        3.7819        .52971E-05    .84314E-03
   4  Prefactor     .10000E-03    27.451        .32783E-04** at limit **
   5  norm          5.9717        4.2872        .83048E-05    .36829E-02
   6  Prefactor     10.329        1.2282        .80651E-06   -.79413E-03
   7  Prefactor     .10000E-03    2.8233        .22063E-05** at limit **
   8  Prefactor     .10000E-03    11.231       -.99780E-06** at limit **
   9  Prefactor     .10110E-03    19.649        .64750E-05** at limit **
  10  norm          1.3108        .45525        .21191E-06   -.55447E-03
  11  norm          .98560        .73201       -.34994E-06    .24228E-03
  12  Prefactor     2.0432        1.4617        .68542E-06   -.23651E-02
  13  Prefactor     25.002        1.2742        .66438E-06   -.37910E-03
  14  Prefactor     .10000E-03    3.9258       -.61979E-07** at limit **
  15  Prefactor     .85935        5.2988       -.78475E-06   -.47846E-04
  16  Prefactor     5.2682        1.1361       -.34269E-09    .16312E-02
  17  Prefactor     .10124E-03    69.719       -.58850E-04** at limit **
  18  Prefactor     .10002E-03    25.242       -.14214E-04** at limit **
  19  norm          1.9043        .50086        .16647E-06   -.41491E-03
  20  Prefactor     .10006E-03    11.606        .23159E-04** at limit **
  21  Normalizat    .99670        .15614       -.73444E-06   -.39384E-04
  22  Prefactor     1.1135        .10106        .48059E-06   -.93500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 82.5918
  norm       = 3.7824
  Prefactor  = 0.0001
  norm       = 5.97174
  Prefactor  = 10.3295
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000101104
  norm       = 1.31077
  norm       = 0.9856
  Prefactor  = 2.04324
  Prefactor  = 25.0025
  Prefactor  = 0.0001
  Prefactor  = 0.859349
  Prefactor  = 5.2682
  Prefactor  = 0.000101242
  Prefactor  = 0.000100021
  norm       = 1.9043
  Prefactor  = 0.000100062
  Normalizat = 0.996699
  Prefactor  = 1.11348
 **********
 **   18 **HESSE 
 **********

 FCN=   18891.52     FROM HESSE     STATUS=OK           410 CALLS     2447 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.852        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     82.592        6.5369        .11049E-02   -1.3888    
   3  norm          3.7824        3.7924        .51892E-02   -1.5319    
   4  Prefactor     .10000E-03    48.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.9717        4.6050        .41080E-02   -1.5219    
   6  Prefactor     10.329        7.7871        .31166E-02   -1.5065    
   7  Prefactor     .10000E-03    2.8021        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.232        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10110E-03    56.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3108        .46467        .96264E-02   -1.5479    
  11  norm          .98560        .83574        .22515E-01   -1.5509    
  12  Prefactor     2.0432        6.1887        .72288E-02   -1.5422    
  13  Prefactor     25.002        27.289        .20029E-02   -1.4707    
  14  Prefactor     .10000E-03    1.6388        .58500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .85935        2.2999        .87824E-01   -1.5523    
  16  Prefactor     5.2682        8.1075        .43767E-02   -1.5249    
  17  Prefactor     .10124E-03    80.903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    25.491        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9043        .50274        .75335E-02   -1.5432    
  20  Prefactor     .10006E-03    3.1194        .98289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99670        .14057        .78188E-01   -.93141    
  22  Prefactor     1.1135        .87622E-01    .37095E-01   -.89037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06914e-07
Minuit parameter uncertainties:
  1  0.000502925
  2  6.53699
  3  3.7926
  4  0.000259772
  5  4.60524
  6  7.78786
  7  1.30288e-05
  8  0.000223998
  9  0.0158701
  10  0.464668
  11  0.835753
  12  6.19063
  13  27.3022
  14  2.36075e-07
  15  2.30011
  16  8.10914
  17  0.0200745
  18  0.00145672
  19  0.502745
  20  0.000883014
  21  0.14062
  22  0.087633
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.311e+00  4.647e-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:  1.113e+00  8.763e-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:  9.967e-01  1.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.36
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 6.73e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 1.38e-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) = 18891.072191
delta logL = 0.443905535918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18891.07189
delta logL = 0.444206537632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2875       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3038       1.0000          .0000       5.0000    
     3 'Normalizat'    .96734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1236       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=   18891.07     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2870        4.6649        .97638E-02    .10984E-02
   2  alpha         2.3034        3.5399        .35023        .85898E-04
   3  Normalizat    .96710        .58228E-01    .79201E-01    .55500E-04
   4  Prefactor     1.1238        .32129E-01    .36751E-01    .13219E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28697
  alpha      = 2.30343
  Normalizat = 0.967099
  Prefactor  = 1.12384
 **********
 **   18 **HESSE 
 **********

 FCN=   18891.07     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2870        .44424        .48344E-04   -1.5481    
   2  alpha         2.3034        .32206        .12489E-01   -.78711E-01
   3  Normalizat    .96710        .15806        .35056E-03   -.94141    
   4  Prefactor     1.1238        .10147        .21329E-03   -.88708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97773e-09
Minuit parameter uncertainties:
  1  0.444241
  2  0.322963
  3  0.158132
  4  0.101489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89733': 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) = 18891.071885
delta logL = 0.444211526919

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  1.287e+00  4.442e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.303e+00  3.230e-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:  1.124e+00  1.015e-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:  9.671e-01  1.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.17
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.30 +/- 0.32
Photon Flux (Free Index): 9.23e-08 +/- 3.85e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.17e-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/89733/cmap_HighResolution_624240001_624844801_4FGL_J0112.1+2245_weekly_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.73e-08', energy_flux2='3.34e-05', photon_flux_error='2.38e-08', dlogl='4.44e-01', energy_flux='3.88e-05', photon_flux2='9.23e-08', job_status='DONE', time_completed='2021-07-03 17:21:04.494594', photon_index_error2='0.32', photon_index2='2.30', ts='18.36', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.00', time_epoch_completed='1625358064.49', return_code='0', job_id='89733', GAL2='1.12', EG2='0.97', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.85e-08', ts2='19.17', photon_index='2.01' WHERE bin_id='637' AND source_name='4FGL J0112.1+2245' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 17:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 89733: <4FGL_J0112.1+2245_weekly_bin637> in cluster <slac> Done

Job <4FGL_J0112.1+2245_weekly_bin637> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Jul  3 17:05:39 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 17:05:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 17:05:42 2021
Terminated at Sat Jul  3 17:21:05 2021
Results reported at Sat Jul  3 17:21:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_weekly_bin637 18.0294 22.7515 624240001 624844801 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 :                                   895.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

