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


Performing analysis on: 4FGL_J0112.8+3208_daily_bin1429
RA = 18.2227, Dec = 32.1399
tmin = 609724801, tmax = 609984001
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='428454', job_status='RUN', time_executed='2021-08-13 16:52:07.195635', time_epoch_executed='1628898727.2' WHERE source_name='4FGL J0112.8+3208' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428454/ft1_4FGL_J0112.8+3208_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428454/ft1_4FGL_J0112.8+3208_daily_bin1429.fits outfile=/scratch/kocevski/428454/ft1_filteredMKT_4FGL_J0112.8+3208_daily_bin1429.fits ra=18.2227 dec=32.1399 rad=12.0 tmin=609724801.0 tmax=609984001.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 11.44
user 2.37
sys 8.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428454/ft1_filtered_4FGL_J0112.8+3208_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/428454/ltcube_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.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/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits
.....................!
real 24.85
user 14.61
sys 10.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428454/ft1_filtered_4FGL_J0112.8+3208_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/428454/ltcube_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.fits outfile=/scratch/kocevski/428454/expmap_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.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/428454/ltcube_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.fits
.....................!
real 202.59
user 186.17
sys 16.00

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/428454/ft1_filtered_4FGL_J0112.8+3208_daily_bin1429.fits scfile=/scratch/kocevski/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits outfile=/scratch/kocevski/428454/cmap_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.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 9.12
user 0.39
sys 8.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428454/ft1_filtered_4FGL_J0112.8+3208_daily_bin1429.fits scfile=/scratch/kocevski/428454/ft2_4FGL_J0112.8+3208_daily_bin1429.fits outfile=/scratch/kocevski/428454/cmap_HighResolution_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.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 9.17
user 0.38
sys 8.75

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    241.27       1.0000         .10000E-03   10000.    
     2 'norm      '    22.357       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74627E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15533E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17293E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10260E-03   1.0000         .10000E-03   10000.    
    11 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12230E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9999.4       1.0000         .10000E-03   10000.    
    16 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.858       1.0000         .10000E-03   10000.    
    19 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12743E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.244       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    90.799       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .60525E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .24903E-07   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=   206.4455     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     4302 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     241.50        266.79       -.20368E-05    .15951E-04
   2  norm          22.382        22.762       -.41380E-06    .14060E-04
   3  Prefactor     69.920        82.148       -.35420E-05    .57155E-04
   4  Prefactor     .10000E-03    1392.7        .11265E-05** at limit **
   5  Prefactor     .10012E-03    482.82        .14862E-04** at limit **
   6  Prefactor    10000.0        6506.9        .78466E-04** at limit **
   7  Prefactor    10000.0        8147.3       -.18601E-03** at limit **
   8  Prefactor     .10024E-03    575.88       -.46849E-04** at limit **
   9  Prefactor     .10001E-03    7026.3       -.23234E-04** at limit **
  10  norm          .10000E-03    21.730        .12418E-06** at limit **
  11  norm         10000.0        716.91       -.59609E-04** at limit **
  12  Prefactor     .10001E-03    9094.9       -.49217E-04** at limit **
  13  Prefactor     .10000E-03    1614.0       -.11956E-04** at limit **
  14  Prefactor    10000.0        7803.6       -.12680E-03** at limit **
  15  Prefactor    10000.0        9997.4       -.88469E-04** at limit **
  16  norm          .10000E-03    13.774        .82836E-07** at limit **
  17  Prefactor    10000.0        5222.4       -.84567E-03** at limit **
  18  Prefactor    10000.0        5130.5       -.12588E-02** at limit **
  19  norm         10000.0        6265.6       -.90893E-05** at limit **
  20  Prefactor     .10000E-03    90.284       -.32903E-07** at limit **
  21  Prefactor     15.245        15.765        .14090E-07   -.40488E-04
  22  Prefactor     .10000E-03    142.30       -.10458E-05** at limit **
  23  norm          90.685        81.374       -.37184E-06   -.29004E-04
  24  Prefactor     .10003E-03    333.02       -.52677E-04** at limit **
  25  Normalizat    .10000E-01    .16109        .37412E-05** at limit **
  26  Prefactor     .27756E-14    .14467        .93980E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 241.502
  norm       = 22.3821
  Prefactor  = 69.92
  Prefactor  = 0.000100001
  Prefactor  = 0.000100117
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100245
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.000100012
  Prefactor  = 0.000100004
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 15.2455
  Prefactor  = 0.0001
  norm       = 90.685
  Prefactor  = 0.00010003
  Normalizat = 0.01
  Prefactor  = 2.77556e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   206.4455     FROM HESSE     STATUS=OK           438 CALLS     4740 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     241.50        268.45        .13034E-03   -1.2587    
   2  norm          22.382        22.787        .67767E-04   -1.4761    
   3  Prefactor     69.920        82.310        .23970E-03   -1.4034    
   4  Prefactor     .10000E-03    1389.3        .18595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    517.80        .20443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        6507.2        .19764E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        8137.9        .19005E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10024E-03    600.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    7025.4        .20355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    21.913        .65803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm         10000.0        727.63        .20803E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    9087.6        .23831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1611.0        .18168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        7797.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9993.1        .22987E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.852        .52297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        5296.0        .73001E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        5089.4        .53798E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        6267.4        .20390E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    93.684        .13619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.245        15.772        .56804E-04   -1.4927    
  22  Prefactor     .10000E-03    150.92        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          90.685        81.587        .21085E-03   -1.3801    
  24  Prefactor     .10003E-03    345.59        .18927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .17246        .18498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .27756E-14    .15446        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38778e-09
Minuit parameter uncertainties:
  1  269.84
  2  22.796
  3  82.4446
  4  0.00260559
  5  0.0157038
  6  0.0410363
  7  0.210292
  8  0.0244851
  9  0.0127065
  10  4.80992e-06
  11  0.0258805
  12  0.024552
  13  0.00501953
  14  0.124399
  15  0.265008
  16  3.62476e-06
  17  1.13589
  18  3.07494
  19  0.0111627
  20  1.36258e-06
  21  15.776
  22  0.000237717
  23  81.6879
  24  0.00651807
  25  9.91603e-08
  26  4.26404e-08
Done.

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

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e+04  2.588e-02  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:  2.776e-15  4.264e-08  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  9.916e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.27
Ra Dec: 18.223 32.140
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.76e-04 +/- 7.13e-10
Energy Flux (Fixed Index): 9.91e-02 +/- 2.56e-07

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) = 190.779476176
delta logL = 15.665979595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 190.779340619
delta logL = 15.6661151523

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 '    .11825E-09   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=   190.7793     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      182 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        904.64        .90720E-02** at limit **
   2  alpha         5.0000        .17350        .11558    ** at limit **
   3  Normalizat    .10000E-01    .11556        .65870E-01** at limit **
   4  Prefactor     .32030E-12    .10455        .62676E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 3.20299e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   190.7793     FROM HESSE     STATUS=OK            23 CALLS      205 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        904.65        .18144E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .17729        .25307E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .11558        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32030E-12    .10486        .13834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3058e-11
Minuit parameter uncertainties:
  1  0.000752686
  2  5.94326e-07
  3  6.18592e-07
  4  3.67333e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428454': 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) = 190.77933551
delta logL = 15.6661202604

Extracting fit parameters...

4FGL J0112.8+3208
   Spectrum: LogParabola
243         norm:  1.000e+04  7.527e-04  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  5.000e+00  5.943e-07  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:  3.203e-13  3.673e-07  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  6.186e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.60
Ra Dec: 18.223 32.140
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.93e-03 +/- 5.56e-09
Energy Flux (Free Index): 9.33e-01 +/- 7.01e-07

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/428454/cmap_HighResolution_609724801_609984001_4FGL_J0112.8+3208_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-04', energy_flux2='9.33e-01', photon_flux_error='7.13e-10', dlogl='1.57e+01', energy_flux='9.91e-02', photon_flux2='6.93e-03', job_status='DONE', time_completed='2021-08-13 17:00:02.047391', photon_index_error2='0.00', photon_index2='5.00', ts='26.27', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', energy_flux_error2='7.01e-07', EG='0.01', time_epoch_completed='1628899202.05', return_code='0', job_id='428454', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='2.56e-07', photon_flux_error2='5.56e-09', ts2='57.60', photon_index='2.25' WHERE bin_id='1429' AND source_name='4FGL J0112.8+3208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 17:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 428454: <4FGL_J0112.8+3208_daily_bin1429> in cluster <slac> Done

Job <4FGL_J0112.8+3208_daily_bin1429> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 16:45:52 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 16:47:47 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:47:47 2021
Terminated at Fri Aug 13 17:00:04 2021
Results reported at Fri Aug 13 17:00:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0112.8+3208_daily_bin1429 18.2227 32.1399 609724801 609984001 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 :                                   601.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             161.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            852 sec.

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

