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


Performing analysis on: 4FGL_J0112.1+2245_daily_bin1478
RA = 18.0294, Dec = 22.7515
tmin = 622425601, tmax = 622684801
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='417570', job_status='RUN', time_executed='2021-08-13 16:12:47.023900', time_epoch_executed='1628896367.02' WHERE source_name='4FGL J0112.1+2245' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/417570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/417570/ft1_4FGL_J0112.1+2245_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/417570/ft1_4FGL_J0112.1+2245_daily_bin1478.fits outfile=/scratch/kocevski/417570/ft1_filteredMKT_4FGL_J0112.1+2245_daily_bin1478.fits ra=18.0294 dec=22.7515 rad=12.0 tmin=622425601.0 tmax=622684801.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 4.95
user 4.02
sys 0.91

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/417570/ft1_filtered_4FGL_J0112.1+2245_daily_bin1478.fits" evtable="EVENTS" scfile=/scratch/kocevski/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits sctable="SC_DATA" outfile=/scratch/kocevski/417570/ltcube_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.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/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits
.....................!
real 13.64
user 12.51
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/417570/ft1_filtered_4FGL_J0112.1+2245_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/417570/ltcube_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.fits outfile=/scratch/kocevski/417570/expmap_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.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/417570/ltcube_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.fits
.....................!
real 193.51
user 186.92
sys 6.19

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/417570/ft1_filtered_4FGL_J0112.1+2245_daily_bin1478.fits scfile=/scratch/kocevski/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits outfile=/scratch/kocevski/417570/cmap_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.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 1.21
user 0.38
sys 0.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/417570/ft1_filtered_4FGL_J0112.1+2245_daily_bin1478.fits scfile=/scratch/kocevski/417570/ft2_4FGL_J0112.1+2245_daily_bin1478.fits outfile=/scratch/kocevski/417570/cmap_HighResolution_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.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 1.21
user 0.38
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.280       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6097       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7054       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0202       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.453       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.180       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0125       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90415       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=   7899.903     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2382 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.031        .56646E-06** at limit **
   2  Prefactor     92.279        9.6129       -.88519E-07    .40342E-05
   3  norm          .10000E-03    4.6914       -.38157E-06** at limit **
   4  Prefactor     .10000E-03    8.4032        .11314E-06** at limit **
   5  norm          .10000E-03    2.3471       -.13444E-06** at limit **
   6  Prefactor     .10000E-03    6.7703        .37714E-06** at limit **
   7  Prefactor     .10000E-03    12.790       -.47651E-06** at limit **
   8  Prefactor     14.329        47.183        .74582E-05   -.24161E-05
   9  Prefactor     .10000E-03    23.416       -.16834E-06** at limit **
  10  norm          2.6096        .78561        .34007E-07    .73600E-05
  11  norm          3.7054        1.5696       -.22671E-08   -.16441E-03
  12  Prefactor     10.405        9.7935       -.34415E-06   -.16981E-05
  13  Prefactor     5.0175        32.752       -.24302E-05   -.20712E-04
  14  Prefactor     .10000E-03    2.2809        .48076E-07** at limit **
  15  Prefactor     15.453        7.8510        .17920E-06   -.64469E-04
  16  Prefactor     .10000E-03    5.5405        .37087E-06** at limit **
  17  Prefactor     25.956        36.261        .94998E-05   -.15050E-05
  18  Prefactor     78.142        95.001       -.40395E-04   -.11766E-05
  19  norm          1.8120        .72815        .54035E-06   -.12087E-03
  20  Prefactor     .10000E-03    5.1703        .22549E-07** at limit **
  21  Normalizat    1.0125        .19354        .97259E-06   -.47079E-04
  22  Prefactor     .90418        .12528        .16158E-06    .26783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 92.279
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3285
  Prefactor  = 0.0001
  norm       = 2.60961
  norm       = 3.70541
  Prefactor  = 10.4051
  Prefactor  = 5.01748
  Prefactor  = 0.0001
  Prefactor  = 15.4532
  Prefactor  = 0.0001
  Prefactor  = 25.9563
  Prefactor  = 78.1416
  norm       = 1.81198
  Prefactor  = 0.0001
  Normalizat = 1.01246
  Prefactor  = 0.904178
 **********
 **   18 **HESSE 
 **********

 FCN=   7899.903     FROM HESSE     STATUS=OK           342 CALLS     2724 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     92.279        9.6206        .41834E-04   -1.3784    
   3  norm          .10000E-03    4.7013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3482        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.329        47.177        .10583E-03   -1.4951    
   9  Prefactor     .10000E-03    23.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6096        .78521        .41427E-04   -1.5385    
  11  norm          3.7054        1.5669        .67734E-04   -1.5323    
  12  Prefactor     10.405        9.8006        .12422E-03   -1.5063    
  13  Prefactor     5.0175        32.675        .17947E-03   -1.5260    
  14  Prefactor     .10000E-03    2.2974        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.453        7.8578        .10189E-03   -1.4922    
  16  Prefactor     .10000E-03    5.5722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.956        36.269        .78640E-04   -1.4689    
  18  Prefactor     78.142        94.984        .45418E-04   -1.3938    
  19  norm          1.8120        .72632        .44442E-04   -1.5439    
  20  Prefactor     .10000E-03    5.2301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0125        .22613        .31706E-03   -.92614    
  22  Prefactor     .90418        .14663        .22046E-03   -.95995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63919e-11
Minuit parameter uncertainties:
  1  3.77557e-05
  2  9.62078
  3  1.39335e-06
  4  1.798e-06
  5  5.78742e-07
  6  7.14714e-06
  7  1.04004e-05
  8  47.2999
  9  7.89666e-06
  10  0.785209
  11  1.56691
  12  9.80213
  13  25.6286
  14  9.48325e-06
  15  7.85829
  16  6.26263e-05
  17  36.2997
  18  95.1696
  19  0.726322
  20  7.4969e-06
  21  0.226345
  22  0.146691
Done.

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

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  2.610e+00  7.852e-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.042e-01  1.467e-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.012e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.57
Ra Dec: 18.029 22.752
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 4.03e-08
Energy Flux (Fixed Index): 7.73e-05 +/- 2.33e-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) = 7899.44754558
delta logL = 0.455616957207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7899.43627723
delta logL = 0.466885302435

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3306       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2709       1.0000          .0000       5.0000    
     3 'Normalizat'    .97987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91685       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=   7899.436     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3306        9.1438        .67156E-02    .11532E-03
   2  alpha         2.2709        3.6016        .18308        .57618E-04
   3  Normalizat    .97988        .14020        .72646E-01    .21220E-04
   4  Prefactor     .91685        .82528E-01    .45219E-01    .75171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33061
  alpha      = 2.27093
  Normalizat = 0.979879
  Prefactor  = 0.916847
 **********
 **   18 **HESSE 
 **********

 FCN=   7899.436     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3306        .80741        .37397E-04   -1.5403    
   2  alpha         2.2709        .28758        .77368E-02   -.91758E-01
   3  Normalizat    .97988        .22180        .32143E-03   -.93708    
   4  Prefactor     .91685        .14588        .21905E-03   -.95555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12177e-10
Minuit parameter uncertainties:
  1  0.807414
  2  0.288223
  3  0.222009
  4  0.145944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/417570': 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) = 7899.43627722
delta logL = 0.466885311102

Extracting fit parameters...

4FGL J0112.1+2245
   Spectrum: LogParabola
248         norm:  2.331e+00  8.074e-01  1.000e-04  1.000e+04 ( 1.000e-11)
249        alpha:  2.271e+00  2.882e-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.168e-01  1.459e-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.799e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.18
Ra Dec: 18.029 22.752
Photon Index (Free Index): 2.27 +/- 0.29
Photon Flux (Free Index): 1.61e-07 +/- 5.22e-08
Energy Flux (Free Index): 6.06e-05 +/- 2.23e-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/417570/cmap_HighResolution_622425601_622684801_4FGL_J0112.1+2245_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='6.06e-05', photon_flux_error='4.03e-08', dlogl='4.67e-01', energy_flux='7.73e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-08-13 16:24:06.891222', photon_index_error2='0.29', photon_index2='2.27', ts='31.57', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.01', time_epoch_completed='1628897046.89', return_code='0', job_id='417570', GAL2='0.92', EG2='0.98', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='5.22e-08', ts2='32.18', photon_index='2.01' WHERE bin_id='1478' AND source_name='4FGL J0112.1+2245' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:24:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 417570: <4FGL_J0112.1+2245_daily_bin1478> in cluster <slac> Done

Job <4FGL_J0112.1+2245_daily_bin1478> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 16:10:38 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:12:25 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:12:25 2021
Terminated at Fri Aug 13 16:24:07 2021
Results reported at Fri Aug 13 16:24:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.1+2245_daily_bin1478 18.0294 22.7515 622425601 622684801 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            809 sec.

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

