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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin927
RA = 18.0294, Dec = 22.7515
tmin = 479606401, tmax = 479865601
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='414423', job_status='RUN', time_executed='2021-08-13 16:01:00.906277', time_epoch_executed='1628895660.91' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414423/ft1_4FGL_J0112.1+2245_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414423/ft1_4FGL_J0112.1+2245_daily_bin927.fits outfile=/scratch/kocevski/414423/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin927.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=479606401.0 tmax=479865601.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 3.43
user 3.21
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.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/414423/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin927.fits evtable="EVENTS" outfile="/scratch/kocevski/414423/ft1_filtered_4FGL_J0112.1+2245_daily_bin927.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414423/ft1_filtered_4FGL_J0112.1+2245_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/414423/ltcube_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.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/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits
.....................!
real 12.33
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414423/ft1_filtered_4FGL_J0112.1+2245_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/414423/ltcube_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.fits outfile=/scratch/kocevski/414423/expmap_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.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/414423/ltcube_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.fits
.....................!
real 191.75
user 185.95
sys 5.37

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/414423/ft1_filtered_4FGL_J0112.1+2245_daily_bin927.fits scfile=/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits outfile=/scratch/kocevski/414423/cmap_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414423/ft1_filtered_4FGL_J0112.1+2245_daily_bin927.fits scfile=/scratch/kocevski/414423/ft2_4FGL_J0112.1+2245_daily_bin927.fits outfile=/scratch/kocevski/414423/cmap_HighResolution_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.7358       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.463       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95505       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6384       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3788       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1292       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0762       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=   7739.712     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2321 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.732        .66401E-05** at limit **
   2  Prefactor     .10000E-03    2.5912        .17566E-06** at limit **
   3  norm          9.7358        8.8045        .20401E-06    .20619E-03
   4  Prefactor     25.461        30.809       -.22667E-05   -.12718E-04
   5  norm          .10000E-03    2.5603        .10670E-06** at limit **
   6  Prefactor     .10000E-03    3.8637        .81903E-07** at limit **
   7  Prefactor     6.9946        12.523       -.22293E-06   -.61802E-04
   8  Prefactor     .10000E-03    39.672        .65709E-05** at limit **
   9  Prefactor     .10000E-03    17.391        .30046E-05** at limit **
  10  norm          .95500        .60589       -.68502E-07   -.36503E-03
  11  norm          3.2707        1.7908       -.35709E-08   -.33566E-03
  12  Prefactor     24.070        15.713       -.21740E-06   -.24388E-04
  13  Prefactor     .10000E-03    13.403       -.85914E-05** at limit **
  14  Prefactor     1.6380        2.3243       -.38216E-07   -.78323E-04
  15  Prefactor     6.3788        8.3863       -.22916E-06   -.16081E-03
  16  Prefactor     .10000E-03    4.4018        .28708E-07** at limit **
  17  Prefactor     27.548        29.451        .13849E-05    .46939E-05
  18  Prefactor     .10000E-03    40.912       -.80553E-05** at limit **
  19  norm          1.6638        .73037       -.30926E-07   -.84719E-04
  20  Prefactor     11.905        13.043       -.32594E-06   -.42390E-04
  21  Normalizat    1.1293        .21010        .41069E-06   -.36091E-04
  22  Prefactor     1.0762        .13219       -.15752E-06    .17915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.73582
  Prefactor  = 25.4607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.955005
  norm       = 3.27065
  Prefactor  = 24.0697
  Prefactor  = 0.0001
  Prefactor  = 1.63803
  Prefactor  = 6.37882
  Prefactor  = 0.0001
  Prefactor  = 27.5475
  Prefactor  = 0.0001
  norm       = 1.66381
  Prefactor  = 11.9049
  Normalizat = 1.1293
  Prefactor  = 1.0762
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.712     FROM HESSE     STATUS=OK           344 CALLS     2665 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6270        .13812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7358        8.8202        .64215E-03   -1.5084    
   4  Prefactor     25.461        30.910        .79386E-04   -1.4698    
   5  norm          .10000E-03    2.5630        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8671        .16888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9946        12.516        .15169E-03   -1.5179    
   8  Prefactor     .10000E-03    39.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95500        .60028        .52397E-04   -1.5513    
  11  norm          3.2707        1.7813        .80373E-04   -1.5346    
  12  Prefactor     24.070        15.742        .81645E-04   -1.4726    
  13  Prefactor     .10000E-03    13.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6380        2.3030        .15567E-03   -1.5452    
  15  Prefactor     6.3788        8.3926        .15892E-03   -1.5203    
  16  Prefactor     .10000E-03    4.4113        .18024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.548        29.464        .76331E-04   -1.4658    
  18  Prefactor     .10000E-03    40.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6638        .72853        .47988E-04   -1.5450    
  20  Prefactor     11.905        13.061        .11610E-03   -1.5018    
  21  Normalizat    1.1293        .24350        .32026E-03   -.88817    
  22  Prefactor     1.0762        .15340        .21194E-03   -.90231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22004e-11
Minuit parameter uncertainties:
  1  3.55696e-07
  2  9.40385e-06
  3  8.8214
  4  30.9295
  5  7.54079e-07
  6  1.35186e-06
  7  12.5203
  8  2.13605e-06
  9  5.33552e-06
  10  0.600287
  11  1.78131
  12  15.7452
  13  6.71844e-06
  14  2.30315
  15  8.39415
  16  1.23541e-07
  17  29.4794
  18  3.99041e-06
  19  0.728535
  20  13.064
  21  0.243747
  22  0.153462
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  9.550e-01  6.003e-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.076e+00  1.535e-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.129e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 4.90e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.78e-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) = 7739.69020377
delta logL = 0.0213000014119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7739.68962375
delta logL = 0.0218800215525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96889       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1184       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   7739.690     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96889        12.740        .11518E-01   -.99409E-03
   2  alpha         2.1184        3.3395        .41493       -.45596E-05
   3  Normalizat    1.1219        .96533E-01    .72578E-01    .28662E-04
   4  Prefactor     1.0784        .53270E-01    .38472E-01   -.15613E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.968894
  alpha      = 2.11838
  Normalizat = 1.12186
  Prefactor  = 1.0784
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.690     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96889        .59191        .51347E-04   -1.5511    
   2  alpha         2.1184        .53492        .14480E-01   -.15325    
   3  Normalizat    1.1219        .23590        .32117E-03   -.89053    
   4  Prefactor     1.0784        .15196        .21174E-03   -.90160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98331e-11
Minuit parameter uncertainties:
  1  0.59191
  2  0.53919
  3  0.236126
  4  0.152023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414423': 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) = 7739.68962375
delta logL = 0.0218800221401

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  9.689e-01  5.919e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.118e+00  5.392e-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.078e+00  1.520e-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.122e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.12 +/- 0.54
Photon Flux (Free Index): 5.60e-08 +/- 4.72e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.80e-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/414423/cmap_HighResolution_479606401_479865601_4FGL_J0112.1+2245_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.90e-08', energy_flux2='2.65e-05', photon_flux_error='3.08e-08', dlogl='2.19e-02', energy_flux='2.83e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-08-13 16:11:17.805515', photon_index_error2='0.54', photon_index2='2.12', ts='6.83', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='1.13', time_epoch_completed='1628896277.81', return_code='0', job_id='414423', GAL2='1.08', EG2='1.12', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.72e-08', ts2='6.85', photon_index='2.01' WHERE bin_id='927' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 414423: <4FGL_J0112.1+2245_daily_bin927> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin927> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 16:00:26 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:00:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 16:00:49 2021
Terminated at Fri Aug 13 16:11:19 2021
Results reported at Fri Aug 13 16:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin927 18.0294 22.7515 479606401 479865601 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 :                                   614.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            653 sec.

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

