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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1005
RA = 18.2227, Dec = 32.1399
tmin = 499824001, tmax = 500083201
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='425175', job_status='RUN', time_executed='2021-08-13 16:40:11.833837', time_epoch_executed='1628898011.83' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425175/ft1_4FGL_J0112.8+3208_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425175/ft1_4FGL_J0112.8+3208_daily_bin1005.fits outfile=/scratch/kocevski/425175/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1005.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=499824001.0 tmax=500083201.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 9.15
user 4.92
sys 4.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.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/425175/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.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 4.47
user 0.32
sys 4.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/425175/ltcube_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.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/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits
.....................!
real 17.24
user 12.46
sys 4.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/425175/ltcube_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits outfile=/scratch/kocevski/425175/expmap_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.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/425175/ltcube_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits
.....................!
real 196.18
user 185.18
sys 10.46

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.8+3208 @ 18.2227 32.1399

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits outfile=/scratch/kocevski/425175/cmap_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.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.2227 yref=32.1399 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 4.42
user 0.37
sys 4.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits outfile=/scratch/kocevski/425175/cmap_HighResolution_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.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.2227 yref=32.1399 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 4.41
user 0.38
sys 4.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425175/Model_4FGL_J0112.8+3208_daily_bin1005.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/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits.....................!
real 57.01
user 50.44
sys 6.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits', '/scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits', expMap='/scratch/kocevski/425175/expmap_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits', expCube='/scratch/kocevski/425175/ltcube_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425175/Model_4FGL_J0112.8+3208_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0112.8+3208'

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.942e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/425175/ft1_filtered_4FGL_J0112.8+3208_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/425175/ft2_4FGL_J0112.8+3208_daily_bin1005.fits
Exposure map: /scratch/kocevski/425175/expmap_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits
Exposure cube: /scratch/kocevski/425175/ltcube_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425175/Model_4FGL_J0112.8+3208_daily_bin1005.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) = 4833.21750218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.493       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15726E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68646E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2095       1.0000         .10000E-03   10000.    
    11 'norm      '    .68726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3629       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36013E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    115.53       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2303       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5063       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7197       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6681       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4499       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85477       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4833.101     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2753 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.477        40.015       -.84740E-06   -.50421E-03
   2  norm          1.2859        2.8222        .57139E-07   -.47870E-04
   3  Prefactor     .10000E-03    9.6619        .20996E-06** at limit **
   4  Prefactor     .10000E-03    10.053        .59168E-05** at limit **
   5  Prefactor     .10000E-03    3.4628        .46930E-07** at limit **
   6  Prefactor     .10000E-03    18.829       -.48316E-06** at limit **
   7  Prefactor     .10002E-03    81.486        .31702E-05** at limit **
   8  Prefactor     .10005E-03    53.170        .44619E-05** at limit **
   9  Prefactor     .10000E-03    45.274       -.11650E-05** at limit **
  10  norm          1.2100        .85392        .13235E-06    .19838E-02
  11  norm          .69006        1.3614       -.58984E-06   -.12902E-02
  12  Prefactor     7.3383        23.765       -.50485E-06   -.31888E-04
  13  Prefactor     5.1507        4.8816        .38136E-06    .87959E-03
  14  Prefactor     .10003E-03    26.543       -.10697E-04** at limit **
  15  Prefactor     .10000E-03    10.651        .62578E-06** at limit **
  16  norm          .10000E-03    .40399       -.19262E-07** at limit **
  17  Prefactor     115.53        57.634        .31232E-06    .11398E-03
  18  Prefactor     .10001E-03    88.510       -.19864E-05** at limit **
  19  norm          4.2309        1.1103       -.60468E-07   -.11274E-02
  20  Prefactor     21.532        16.534       -.18952E-06   -.17544E-03
  21  Prefactor     9.5072        4.8765       -.22978E-06   -.96321E-03
  22  Prefactor     9.7188        17.861       -.24846E-06   -.35749E-05
  23  norm          4.6681        4.8549       -.20628E-06   -.98892E-04
  24  Prefactor     1.4549        2.4028        .13570E-05   -.98827E-03
  25  Normalizat    .85456        .23981        .12317E-05    .78589E-04
  26  Prefactor     .98105        .14720       -.89680E-06   -.24319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.4771
  norm       = 1.28587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100046
  Prefactor  = 0.000100004
  norm       = 1.21001
  norm       = 0.690056
  Prefactor  = 7.33834
  Prefactor  = 5.15073
  Prefactor  = 0.000100025
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 115.534
  Prefactor  = 0.000100011
  norm       = 4.23092
  Prefactor  = 21.5324
  Prefactor  = 9.50717
  Prefactor  = 9.71879
  norm       = 4.6681
  Prefactor  = 1.4549
  Normalizat = 0.854562
  Prefactor  = 0.981054
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.101     FROM HESSE     STATUS=OK           458 CALLS     3211 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.477        40.765        .22664E-03   -1.3934    
   2  norm          1.2859        2.7836        .16656E-03   -1.5481    
   3  Prefactor     .10000E-03    9.7019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.201        .31016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4656        .12635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    85.948        .41981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    55.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2100        .85035        .51499E-04   -1.5488    
  11  norm          .69006        1.2392        .10618E-02   -1.5542    
  12  Prefactor     7.3383        23.789        .14781E-03   -1.5166    
  13  Prefactor     5.1507        4.9152        .14282E-03   -1.5254    
  14  Prefactor     .10003E-03    35.363        .35882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .40510        .43150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     115.53        57.674        .37432E-04   -1.3554    
  18  Prefactor     .10001E-03    89.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2309        1.1122        .36105E-04   -1.5297    
  20  Prefactor     21.532        16.540        .86329E-04   -1.4780    
  21  Prefactor     9.5072        4.9082        .10325E-03   -1.5091    
  22  Prefactor     9.7188        18.171        .12854E-03   -1.5084    
  23  norm          4.6681        5.2317        .14892E-03   -1.5276    
  24  Prefactor     1.4549        12.377        .17891E-02   -1.5467    
  25  Normalizat    .85456        .27843        .32105E-03   -.98076    
  26  Prefactor     .98105        .17404        .19305E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03047e-09
Minuit parameter uncertainties:
  1  40.7791
  2  2.78387
  3  5.11464e-05
  4  0.000164064
  5  8.08821e-06
  6  0.000214985
  7  0.00248668
  8  0.00320681
  9  0.000814561
  10  0.850359
  11  1.23929
  12  23.8202
  13  4.91563
  14  0.00189146
  15  0.000156988
  16  8.86627e-07
  17  57.7019
  18  0.0019715
  19  1.11218
  20  16.543
  21  4.90836
  22  18.1812
  23  5.23218
  24  8.48921
  25  0.278894
  26  0.174142
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  6.901e-01  1.239e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.811e-01  1.741e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  8.546e-01  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 18.223 32.140
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425175/likelihoodResults_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.txt

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) = 4833.10005821
delta logL = 0.00138142186461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4833.1000233
delta logL = 0.00141633061958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1941       1.0000          .0000       5.0000    
     3 'Normalizat'    .85559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4833.100     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      209 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69892        69.774        .23324E-01   -.76698E-03
   2  alpha         2.1936        3.6424        .41548       -.12643E-05
   3  Normalizat    .85560        .79110E-01    .72509E-01    .18977E-04
   4  Prefactor     .98058        .55207E-01    .46024E-01    .13071E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.698916
  alpha      = 2.19355
  Normalizat = 0.855603
  Prefactor  = 0.980585
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.100     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69892        1.2665        .10730E-02   -1.5541    
   2  alpha         2.1936        1.0547        .25281E-01   -.12289    
   3  Normalizat    .85560        .26583        .32087E-03   -.98038    
   4  Prefactor     .98058        .17126        .19309E-03   -.93380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80957e-10
Minuit parameter uncertainties:
  1  1.26657
  2  1.08941
  3  0.266237
  4  0.171354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425175': 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) = 4833.10002319
delta logL = 0.00141644444375

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  6.989e-01  1.267e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.194e+00  1.089e+00  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  6.695e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  5.002e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.806e-01  1.714e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  8.556e-01  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 18.223 32.140

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425175/cmap_HighResolution_499824001_500083201_4FGL_J0112.8+3208_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-13 16:51:33.142535', job_id='425175', GAL2='0.98', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1628898693.14', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.42e-03', ts2='0.40', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1005' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 425175: <4FGL_J0112.8+3208_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1005> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 16:35:35 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:35:54 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:35:54 2021
Terminated at Fri Aug 13 16:51:34 2021
Results reported at Fri Aug 13 16:51:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1005 18.2227 32.1399 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0112.8+3208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            959 sec.

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

