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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1305
RA = 18.2227, Dec = 32.1399
tmin = 577584001, tmax = 577843201
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='428257', job_status='RUN', time_executed='2021-08-13 16:49:32.776991', time_epoch_executed='1628898572.78' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428257/ft1_4FGL_J0112.8+3208_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428257/ft1_4FGL_J0112.8+3208_daily_bin1305.fits outfile=/scratch/kocevski/428257/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1305.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=577584001.0 tmax=577843201.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.34
user 2.60
sys 1.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.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/428257/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.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 2.03
user 0.33
sys 1.68

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/428257/ltcube_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.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/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits
.....................!
real 14.53
user 12.33
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/428257/ltcube_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits outfile=/scratch/kocevski/428257/expmap_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.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/428257/ltcube_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits
.....................!
real 192.64
user 184.82
sys 7.38

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/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits scfile=/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits outfile=/scratch/kocevski/428257/cmap_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.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 2.05
user 0.38
sys 1.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits scfile=/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits outfile=/scratch/kocevski/428257/cmap_HighResolution_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.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 2.10
user 0.36
sys 1.66

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits', '/scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits', expMap='/scratch/kocevski/428257/expmap_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits', expCube='/scratch/kocevski/428257/ltcube_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428257/Model_4FGL_J0112.8+3208_daily_bin1305.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/428257/ft1_filtered_4FGL_J0112.8+3208_daily_bin1305.fits
Spacecraft file(s): /scratch/kocevski/428257/ft2_4FGL_J0112.8+3208_daily_bin1305.fits
Exposure map: /scratch/kocevski/428257/expmap_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits
Exposure cube: /scratch/kocevski/428257/ltcube_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428257/Model_4FGL_J0112.8+3208_daily_bin1305.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) = 230.702788879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1989.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6318.8       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34807E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10000.       1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12901E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'norm      '    .19524E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33639E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48615E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.5696       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.588       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .16187       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=   229.4893     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3586 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    134.29        .25408E-04** at limit **
   2  norm          .10000E-03    14.941        .14159E-06** at limit **
   3  Prefactor     .10000E-03    104.16       -.91544E-05** at limit **
   4  Prefactor     .10000E-03    321.11       -.25037E-03** at limit **
   5  Prefactor     .10000E-03    1974.2       -.48452E-03** at limit **
   6  Prefactor     1988.5        5972.9       -.12362E-03    .44186E-06
   7  Prefactor     6328.3        6690.9        .19741E-02    .27660E-06
   8  Prefactor     .10000E-03    9902.5       -.34545E-02** at limit **
   9  Prefactor     .10000E-03    647.33        .45357E-03** at limit **
  10  norm         10000.0        1594.3        .24101E-03** at limit **
  11  norm         10000.0        527.19       -.38524E-03** at limit **
  12  Prefactor    10000.0        8557.1        .39919E-03** at limit **
  13  Prefactor    10000.0        8654.6        .34987E-02** at limit **
  14  Prefactor     .10000E-03    6541.2       -.25635E-03** at limit **
  15  Prefactor    10000.0        8702.4        .25312E-02** at limit **
  16  norm          .10000E-03    17.955        .48898E-07** at limit **
  17  Prefactor     .10000E-03    8502.5       -.87218E-03** at limit **
  18  Prefactor     .10000E-03    6805.5       -.23883E-02** at limit **
  19  norm          .10000E-03    6.6271       -.28757E-07** at limit **
  20  Prefactor     .10000E-03    20.675       -.15943E-06** at limit **
  21  Prefactor     5.1523        7.5010        .30097E-06   -.26257E-04
  22  Prefactor     .10000E-03    38.195        .42140E-07** at limit **
  23  norm          9.5737        12.588        .29809E-05   -.94606E-06
  24  Prefactor     24.594        24.606       -.86005E-06    .18788E-04
  25  Normalizat    .10000E-01    .14798       -.80001E-06** at limit **
  26  Prefactor     .16204        .19775       -.17013E-04   -.42357E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1988.5
  Prefactor  = 6328.32
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100003
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15228
  Prefactor  = 0.0001
  norm       = 9.57368
  Prefactor  = 24.5942
  Normalizat = 0.01
  Prefactor  = 0.162037
 **********
 **   18 **HESSE 
 **********

 FCN=   229.4893     FROM HESSE     STATUS=OK           440 CALLS     4026 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.27        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.941        .57261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    104.16        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    321.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1974.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1988.5        5972.6        .50104E-04   -.64638    
   7  Prefactor     6328.3        6697.0        .41468E-04    .26889    
   8  Prefactor     .10000E-03    9902.5        .18391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    647.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        1594.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        527.17        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        8557.0        .21107E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        8654.6        .18517E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6541.0        .20585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8702.4        .18290E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    26.165        .11958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8502.4        .19701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6805.4        .18527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6273        .38130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.676        .67362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1523        7.5060        .47227E-04   -1.5254    
  22  Prefactor     .10000E-03    38.196        .91587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.5737        12.599        .59434E-04   -1.5089    
  24  Prefactor     24.594        24.633        .72658E-04   -1.4716    
  25  Normalizat    .10000E-01    .14810        .18025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16204        .18907        .20963E-03   -1.3155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12855e-11
Minuit parameter uncertainties:
  1  0.000584865
  2  7.93349e-06
  3  3.71494e-07
  4  0.00150289
  5  0.0012138
  6  4215.52
  7  22397.3
  8  0.0017987
  9  0.000563135
  10  0.000257248
  11  0.000793109
  12  0.00337506
  13  0.00063715
  14  0.00627674
  15  0.000775268
  16  0.000168289
  17  0.000253915
  18  0.000293505
  19  7.92654e-07
  20  2.63353e-06
  21  7.50738
  22  1.01973e-06
  23  12.602
  24  24.6432
  25  1.20522e-06
  26  0.189784
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e+04  7.931e-04  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:  1.620e-01  1.898e-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:  1.000e-02  1.205e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.76
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.76e-04 +/- 2.19e-11
Energy Flux (Fixed Index): 9.91e-02 +/- 7.86e-09

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) = 198.990972371
delta logL = 30.4983646596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 198.985815468
delta logL = 30.5035215622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20012       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=   198.9858     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      181 TOTAL
                     EDM=   .69E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10000.        370.72        .90725E-02** at limit **
   2  alpha         5.0000        .37334E-01    .46267E-01** at limit **
   3  Normalizat    .10000E-01    .12636        .70351E-01** at limit **
   4  Prefactor     .20023        .16382        .35278E-01    .20002E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.20023
 **********
 **   18 **HESSE 
 **********

 FCN=   198.9858     FROM HESSE     STATUS=OK            25 CALLS      206 TOTAL
                     EDM=   .30E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10000.        370.72        .18145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .37325E-01    .11933E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .12647        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20023        .16345        .16142E-03   -1.2868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95714e-16
Minuit parameter uncertainties:
  1  8.66451e-06
  2  1.40113e-10
  3  8.90207e-11
  4  0.163823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428257': 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) = 198.985802521
delta logL = 30.503534509

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e+04  8.665e-06  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  5.000e+00  1.401e-10  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:  2.002e-01  1.638e-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:  1.000e-02  8.902e-11  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 91.63
Ra Dec: 18.223 32.140
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.93e-03 +/- 6.11e-12
Energy Flux (Free Index): 9.33e-01 +/- 8.22e-10

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/428257/cmap_HighResolution_577584001_577843201_4FGL_J0112.8+3208_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-04', energy_flux2='9.33e-01', photon_flux_error='2.19e-11', dlogl='3.05e+01', energy_flux='9.91e-02', photon_flux2='6.93e-03', job_status='DONE', time_completed='2021-08-13 16:55:35.554133', photon_index_error2='0.00', photon_index2='5.00', ts='30.76', fit_tolerance='1e-08', GAL='0.16', photon_index_error='0.00', energy_flux_error2='8.22e-10', EG='0.01', time_epoch_completed='1628898935.55', return_code='0', job_id='428257', GAL2='0.20', EG2='0.01', return_code2='0', energy_flux_error='7.86e-09', photon_flux_error2='6.11e-12', ts2='91.63', photon_index='2.25' WHERE bin_id='1305' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 16:55:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 428257: <4FGL_J0112.8+3208_daily_bin1305> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1305> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:36 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:46:48 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:46:48 2021
Terminated at Fri Aug 13 16:55:36 2021
Results reported at Fri Aug 13 16:55:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1305 18.2227 32.1399 577584001 577843201 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 :                                   379.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             192.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            600 sec.

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

